Skip to content

Commit 4c34e2d

Browse files
Ant95thraaawn
authored andcommitted
Fix #368: unability to select down side on tunnel
1 parent c5175b2 commit 4c34e2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/dave/compactmachines3/block/BlockWall.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, En
6666
ItemStack playerStack = player.getHeldItemMainhand();
6767

6868
if(playerStack.isEmpty()) {
69-
return true;
69+
return false;
7070
}
7171

7272
if(player.isSneaking()) {
@@ -78,7 +78,7 @@ public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, En
7878
}
7979

8080
if(world.isRemote || !(player instanceof EntityPlayerMP)) {
81-
return false;
81+
return playerStack.getItem() instanceof ItemTunnelTool;
8282
}
8383

8484
if(world.provider.getDimension() != ConfigurationHandler.Settings.dimensionId) {

0 commit comments

Comments
 (0)