Fixed bug with last commit + more bug fixes

This commit is contained in:
Ne_Eo
2025-01-24 02:49:42 +01:00
parent cbbb598f52
commit bb42fdc583
4 changed files with 76 additions and 43 deletions
@@ -79,7 +79,8 @@ class GlobalScript {
call("update", [FlxG.elapsed]);
});
onModSwitch(#if MOD_SUPPORT ModsFolder.currentModFolder #else null #end);
// Commented this out, because it might be the cause why global runs twice - Neo
//onModSwitch(#if MOD_SUPPORT ModsFolder.currentModFolder #else null #end);
}
public static function event<T:CancellableEvent>(name:String, event:T):T {