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();
if( side != -1 )
{
this.side = EnumFacing.values()[stream.readByte()];
this.side = EnumFacing.values()[side];
}
else
{

View File

@ -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 ) )