Skip to content

Commit

Permalink
Added check for vertical direction when getting redstone power
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceitem committed Mar 9, 2023
1 parent 9e2a1f1 commit 20a5b2f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -134,6 +134,7 @@ public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos po

@Override
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) {
if(direction.getAxis().isVertical()) return 0;
BlockEntity blockEntity = world.getBlockEntity(pos);
if(blockEntity instanceof IntegratedCircuitBlockEntity integratedCircuitBlockEntity) {
Direction facing = state.get(FACING);
Expand Down

0 comments on commit 20a5b2f

Please sign in to comment.