Skip to content

Commit

Permalink
修复溜槽切门
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuRuoLing committed Feb 20, 2025
1 parent 7840a80 commit bbac5a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dev/dubhe/anvilcraft/block/ChuteBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ public void neighborChanged(
|| blockState.is(ModBlocks.MAGNETIC_CHUTE.get())
|| blockState.is(ModBlocks.SIMPLE_CHUTE.get())
) {
Block neighbour = blockState.getBlock();
Direction neighbourFacing;
if (neighborBlock == ModBlocks.MAGNETIC_CHUTE.get()) {
if (neighbour == ModBlocks.MAGNETIC_CHUTE.get()) {
neighbourFacing = blockState.getValue(MagneticChuteBlock.FACING);
} else {
neighbourFacing = blockState.getValue(FACING);
Expand Down

0 comments on commit bbac5a9

Please sign in to comment.