Fixed forge, player, & npc scripts not being able to be deleted or added.

This commit is contained in:
Luis C.M committed 2023-02-19 16:22:28 -06:00
1 parent de6375c4cb
commit 0db96f9040
10 files changed
+35 -3

No files matched your search

@@ -42,7 +42,7 @@ public class GuiScriptAllNPCs extends GuiScriptInterface {
List<ScriptContainer> containers = this.script.getScripts();
for (int i = 0; i < containers.size(); i++) {
ScriptContainer container = containers.get(i);
Client.sendData(EnumPacketServer.ScriptNPCSave, i, container.writeToNBT(new NBTTagCompound()));
Client.sendData(EnumPacketServer.ScriptNPCSave, i, containers.size(), container.writeToNBT(new NBTTagCompound()));
}
NBTTagCompound scriptData = new NBTTagCompound();
scriptData.setString("ScriptLanguage", this.script.getLanguage());