don't register classes twice silly

This commit is contained in:
Kolo
2025-08-15 06:13:02 +08:00
committed by Hundrec
parent f1d6906616
commit f870ed2858
+1 -3
View File
@@ -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?