1
0
Fork 0
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:
Cameron Taylor 2024-09-25 19:24:48 -04:00 committed by GitHub
commit cb16a8d55e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();