mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 22:42:19 +00:00
Let a script reload clear the errored latch on single-container handlers
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user