mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 06:12:19 +00:00
Linked Item Saving & Writing
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user