Fixes #2471: PacketClick processing on the server was broken by the fix for #2463

This commit is contained in:
Sebastian Hartte 2016-10-18 00:32:06 +02:00
parent e5decb1325
commit 35542207d8
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ public class PacketClick extends AppEngPacket
byte side = stream.readByte(); byte side = stream.readByte();
if( side != -1 ) if( side != -1 )
{ {
this.side = EnumFacing.values()[stream.readByte()]; this.side = EnumFacing.values()[side];
} }
else else
{ {

View file

@ -137,7 +137,7 @@ public class ToolNetworkTool extends AEBaseItem implements IGuiItem, IAEWrench /
} }
final Block b = w.getBlockState( pos ).getBlock(); final Block b = w.getBlockState( pos ).getBlock();
if( b != null && !p.isSneaking() ) if( !p.isSneaking() )
{ {
final TileEntity te = w.getTileEntity( pos ); final TileEntity te = w.getTileEntity( pos );
if( !( te instanceof IGridHost ) ) if( !( te instanceof IGridHost ) )