Send normal tag #680

This commit is contained in:
Raoul Van den Berge
2016-11-30 17:30:55 +01:00
parent fd008dc2ca
commit d64966f2a3
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ public final class RSUtils {
buf.writeInt(Item.getIdFromItem(stack.getItem())); buf.writeInt(Item.getIdFromItem(stack.getItem()));
buf.writeInt(stack.getCount()); buf.writeInt(stack.getCount());
buf.writeInt(stack.getItemDamage()); buf.writeInt(stack.getItemDamage());
ByteBufUtils.writeTag(buf, stack.getItem().getNBTShareTag(stack)); ByteBufUtils.writeTag(buf, stack.getTagCompound());
buf.writeInt(API.instance().getItemStackHashCode(stack)); buf.writeInt(API.instance().getItemStackHashCode(stack));
buf.writeBoolean(network.hasPattern(stack)); buf.writeBoolean(network.hasPattern(stack));
buf.writeBoolean(displayCraftText); buf.writeBoolean(displayCraftText);

View File

@@ -93,7 +93,7 @@ public class BlockCable extends BlockNode {
TileEntity otherTile = world.getTileEntity(pos.offset(direction)); TileEntity otherTile = world.getTileEntity(pos.offset(direction));
EnumFacing otherTileSide = direction.getOpposite(); EnumFacing otherTileSide = direction.getOpposite();
return otherTile.hasCapability(CapabilityNetworkNode.NETWORK_NODE_CAPABILITY, otherTileSide); return otherTile != null && otherTile.hasCapability(CapabilityNetworkNode.NETWORK_NODE_CAPABILITY, otherTileSide);
} }
private boolean isInAABB(AxisAlignedBB aabb, float hitX, float hitY, float hitZ) { private boolean isInAABB(AxisAlignedBB aabb, float hitX, float hitY, float hitZ) {