Player, Forge, & NPC scripts are saved in separate packets for separate tabs now, so script save/get packets aren't too big for the server.

This commit is contained in:
Luis C.M committed 2023-02-19 13:38:43 -06:00
1 parent 0ddcd15162
commit b8dc090db8
11 files changed
+190 -78

No files matched your search

@@ -236,6 +236,9 @@ public class CustomNpcs {
public void stopped(FMLServerStoppedEvent event){
ServerCloneController.Instance = null;
GlobalDataController.instance.saveData();
ScriptController.Instance.saveForgeScripts();
ScriptController.Instance.savePlayerScripts();
ScriptController.Instance.saveNpcScripts();
}
@EventHandler