Merge pull request #793 from FunkinCrew/cyn0x8/module-ondestroy-fix

[PUBLIC PR] Fix an issue when interacting with modules during onDestroy()
This commit is contained in:
Cameron Taylor
2024-09-25 19:24:48 -04:00
committed by GitHub
@@ -125,7 +125,6 @@ class ModuleHandler
for (key => value in moduleCache)
{
ScriptEventDispatcher.callEvent(value, event);
moduleCache.remove(key);
}
moduleCache.clear();