bye onDestroy

from lunar suggestion since it was confusing as fuckkk😭
This commit is contained in:
⍚~Nex
2024-02-03 03:37:48 +01:00
parent 693ab305bb
commit cc23e4c24f
11 changed files with 10 additions and 20 deletions
@@ -87,7 +87,7 @@ class GlobalScript {
if (scripts != null) scripts.call(name, args);
}
public static function onModSwitch(newMod:String) {
call("onDestroy");
call("destroy");
scripts = FlxDestroyUtil.destroy(scripts);
scripts = new ScriptPack("GlobalScript");
for (i in funkin.backend.assets.ModsFolder.getLoadedMods()) {