mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 01:32: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
@@ -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();
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ public class SubGuiLinkedItem extends SubGuiInterface implements ITextfieldListe
|
||||
@Override
|
||||
public void close() {
|
||||
super.close();
|
||||
PacketClient.sendClient(new LinkedItemSavePacket(linkedItem.writeToNBT(), originalName));
|
||||
PacketClient.sendClient(new LinkedItemSavePacket(linkedItem.writeToNBT(false), originalName));
|
||||
}
|
||||
|
||||
public enum LinkedItemType {
|
||||
|
||||
Reference in new issue
Block a user