Linked Item Saving & Writing

This commit is contained in:
Kam committed 2025-02-17 14:38:42 -05:00
1 parent 85165070e0
commit 5cbab2581c
7 files changed
+36 -20

No files matched your search

@@ -73,7 +73,7 @@ public final class LinkedGetPacket extends AbstractPacket {
} else if (action == Action.ITEM) {
int id = in.readInt();
LinkedItem data = LinkedItemController.getInstance().get(id);
NBTTagCompound compound = data.writeToNBT();
NBTTagCompound compound = data.writeToNBT(false);
GuiDataPacket.sendGuiData((EntityPlayerMP) player, compound);
}
}
@@ -64,7 +64,7 @@ public final class LinkedItemSavePacket extends AbstractPacket {
String prevName = ByteBufUtils.readString(in);
LinkedItem linkedItem = new LinkedItem();
linkedItem.readFromNBT(ByteBufUtils.readNBT(in), false);
linkedItem.readFromNBT(ByteBufUtils.readNBT(in));
linkedItem.version++;
LinkedItemController.getInstance().saveLinkedItem(linkedItem);