From d64966f2a34335d87a31b10973ccbe3e4e1585e0 Mon Sep 17 00:00:00 2001 From: Raoul Van den Berge Date: Wed, 30 Nov 2016 17:30:55 +0100 Subject: [PATCH] Send normal tag #680 --- src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java | 2 +- .../java/com/raoulvdberge/refinedstorage/block/BlockCable.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java b/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java index a655a8ac8..27c6b0cbf 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java @@ -80,7 +80,7 @@ public final class RSUtils { buf.writeInt(Item.getIdFromItem(stack.getItem())); buf.writeInt(stack.getCount()); buf.writeInt(stack.getItemDamage()); - ByteBufUtils.writeTag(buf, stack.getItem().getNBTShareTag(stack)); + ByteBufUtils.writeTag(buf, stack.getTagCompound()); buf.writeInt(API.instance().getItemStackHashCode(stack)); buf.writeBoolean(network.hasPattern(stack)); buf.writeBoolean(displayCraftText); diff --git a/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java b/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java index afa95998c..1850f48c8 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/block/BlockCable.java @@ -93,7 +93,7 @@ public class BlockCable extends BlockNode { TileEntity otherTile = world.getTileEntity(pos.offset(direction)); 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) {