mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 23:39:50 +00:00
Add a Pre-Load Boolean to Scripts to they don't save Empty
This commit is contained in:
1 parent
d119a7524e
commit
236b901e61
11 files changed
+129
-71
No files matched your search
@@ -44,12 +44,15 @@ public class GuiScriptItem extends GuiScriptInterface {
|
||||
this.item.setMCNbt(compound);
|
||||
this.item.loadScriptData();
|
||||
super.setGuiData(compound);
|
||||
loaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void save() {
|
||||
super.save();
|
||||
ItemScriptPacket.Save(this.item.getMCNbt());
|
||||
if(loaded) {
|
||||
super.save();
|
||||
ItemScriptPacket.Save(this.item.getMCNbt());
|
||||
}
|
||||
}
|
||||
|
||||
protected String getConsoleText() {
|
||||
|
||||
Reference in new issue
Block a user