diff --git a/src/main/java/appeng/core/sync/packets/PacketClick.java b/src/main/java/appeng/core/sync/packets/PacketClick.java index 56e0e4d8..dcf4050b 100644 --- a/src/main/java/appeng/core/sync/packets/PacketClick.java +++ b/src/main/java/appeng/core/sync/packets/PacketClick.java @@ -60,7 +60,7 @@ public class PacketClick extends AppEngPacket byte side = stream.readByte(); if( side != -1 ) { - this.side = EnumFacing.values()[stream.readByte()]; + this.side = EnumFacing.values()[side]; } else { diff --git a/src/main/java/appeng/items/tools/ToolNetworkTool.java b/src/main/java/appeng/items/tools/ToolNetworkTool.java index 53a705f6..6696b515 100644 --- a/src/main/java/appeng/items/tools/ToolNetworkTool.java +++ b/src/main/java/appeng/items/tools/ToolNetworkTool.java @@ -137,7 +137,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench / } final Block b = w.getBlockState( pos ).getBlock(); - if( b != null && !p.isSneaking() ) + if( !p.isSneaking() ) { final TileEntity te = w.getTileEntity( pos ); if( !( te instanceof IGridHost ) )