Use the NBT share tag for sending item stack in grid

This commit is contained in:
Raoul Van den Berge
2016-10-31 21:27:26 +01:00
parent 6638a30dde
commit 8e0fdaa0a0

View File

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