Skip to content

Commit

Permalink
修正查找红石方块类型错误
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnyi116 committed Aug 18, 2023
1 parent a94695b commit 412dc9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static BlockPos[] findPistonNearbyRedstoneTorch(BlockPos pistonPos, Clien
for (int i = 0; i < range; i++) {
BlockPos pos = pistonPos.offset(direction, i);
BlockState blockState = world.getBlockState(pos);
if (blockState.isOf(Blocks.REDSTONE_BLOCK) || blockState.isOf(Blocks.REDSTONE_WALL_TORCH)) {
if (blockState.isOf(Blocks.REDSTONE_TORCH) || blockState.isOf(Blocks.REDSTONE_WALL_TORCH)) {
list.add(pos);
}
}
Expand Down

0 comments on commit 412dc9f

Please sign in to comment.