From f870ed2858507273c4dbbca3e4b8b97d80a8d2ec Mon Sep 17 00:00:00 2001 From: Kolo <67389779+KoloInDaCrib@users.noreply.github.com> Date: Wed, 13 Aug 2025 20:15:26 +0200 Subject: [PATCH] don't register classes twice silly --- source/funkin/modding/PolymodHandler.hx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/funkin/modding/PolymodHandler.hx b/source/funkin/modding/PolymodHandler.hx index 99711be1b..1eb03e514 100644 --- a/source/funkin/modding/PolymodHandler.hx +++ b/source/funkin/modding/PolymodHandler.hx @@ -557,12 +557,10 @@ class PolymodHandler Polymod.clearScripts(); // Forcibly reload Polymod so it finds any new files. + // This will also register all scripts. // TODO: Replace this with loadEnabledMods(). funkin.modding.PolymodHandler.loadAllMods(); - // Reload scripted classes so stages and modules will update. - Polymod.registerAllScriptClasses(); - // Reload everything that is cached. // Currently this freezes the game for a second but I guess that's tolerable?