Let a script reload clear the errored latch on single-container handlers

This commit is contained in:
KAMKEEL committed 2026-08-11 12:18:59 -04:00
1 parent fae2c21893
commit 4a52690d99
1 file changed
+9
@@ -40,6 +40,15 @@ public abstract class SingleScriptHandler extends ScriptHandler {
if (!canRunScripts()) {
return;
}
if (ScriptController.Instance.lastLoaded > lastInited) {
lastInited = ScriptController.Instance.lastLoaded;
container.setErrored(false);
}
if (container.hasErrored() || !container.hasCode())
return;
container.run(hookName, event);
}