mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-05-21 14:41:10 +00:00
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:
commit
cb16a8d55e
|
@ -125,7 +125,6 @@ class ModuleHandler
|
||||||
for (key => value in moduleCache)
|
for (key => value in moduleCache)
|
||||||
{
|
{
|
||||||
ScriptEventDispatcher.callEvent(value, event);
|
ScriptEventDispatcher.callEvent(value, event);
|
||||||
moduleCache.remove(key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
moduleCache.clear();
|
moduleCache.clear();
|
||||||
|
|
Loading…
Reference in a new issue