Skip to content

Commit

Permalink
Merge pull request #793 from FunkinCrew/cyn0x8/module-ondestroy-fix
Browse files Browse the repository at this point in the history
[PUBLIC PR] Fix an issue when interacting with modules during onDestroy()
  • Loading branch information
ninjamuffin99 authored Sep 25, 2024
2 parents e1aa25a + 8576381 commit cb16a8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/funkin/modding/module/ModuleHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ class ModuleHandler
for (key => value in moduleCache)
{
ScriptEventDispatcher.callEvent(value, event);
moduleCache.remove(key);
}

moduleCache.clear();
Expand Down

0 comments on commit cb16a8d

Please sign in to comment.