Add a Pre-Load Boolean to Scripts to they don't save Empty

This commit is contained in:
Kam committed 2025-05-29 21:09:58 -04:00
1 parent d119a7524e
commit 236b901e61
11 files changed
+129 -71

No files matched your search

@@ -230,6 +230,10 @@ public class PacketUtil {
tabCompound.setInteger("TotalScripts", containers.size());
GuiDataPacket.sendGuiData(player, tabCompound);
}
NBTTagCompound loadComplete = new NBTTagCompound();
loadComplete.setInteger("LoadComplete", 1);
GuiDataPacket.sendGuiData(player, loadComplete);
}
public static void saveScripts(IScriptHandler data, ByteBuf buffer) throws IOException {