mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
ScriptWorld:
-Added functions from patch
This commit is contained in:
1 parent
f6b9f2c973
commit
dd7714350d
7 files changed
+12
-36
No files matched your search
@@ -413,18 +413,12 @@ public class ScriptCustomItem extends ScriptItemStack implements IItemCustom, IS
|
||||
}
|
||||
|
||||
c.setTag("ScriptedData", this.getScriptNBT(new NBTTagCompound()));
|
||||
for (ScriptContainer container : this.scripts) {
|
||||
container.setEngine(this.getLanguage());
|
||||
}
|
||||
}
|
||||
|
||||
public void loadScriptData() {
|
||||
NBTTagCompound c = this.item.getTagCompound();
|
||||
if (c != null) {
|
||||
this.setScriptNBT(c.getCompoundTag("ScriptedData"));
|
||||
for (ScriptContainer container : this.scripts) {
|
||||
container.setEngine(this.getLanguage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user