mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 11:04:25 +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
@@ -205,7 +205,7 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
|
||||
while (data.containsKey(name))
|
||||
name += "_";
|
||||
LinkedItem linkedItem = new LinkedItem(name);
|
||||
PacketClient.sendClient(new LinkedItemSavePacket(linkedItem.writeToNBT(), ""));
|
||||
PacketClient.sendClient(new LinkedItemSavePacket(linkedItem.writeToNBT(false), ""));
|
||||
}
|
||||
}
|
||||
if(button.id == 2){
|
||||
@@ -383,7 +383,7 @@ public class GuiNPCManageLinked extends GuiNPCInterface2 implements IScrollData,
|
||||
loadedNPC = true;
|
||||
} else {
|
||||
this.linkedItem = new LinkedItem();
|
||||
this.linkedItem.readFromNBT(compound, false);
|
||||
this.linkedItem.readFromNBT(compound);
|
||||
}
|
||||
initGui();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user