Send normal tag #680
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user