Revert "Revert Animation Events"

This reverts commit 1ffddd3ce9.
This commit is contained in:
Kam committed 2024-08-22 16:47:07 -04:00
1 parent 2689127787
commit 4113bcc6e9
31 files changed
+694 -206

No files matched your search

@@ -236,13 +236,14 @@ public class DataScript implements INpcScriptHandler {
@Override
public void callScript(EnumScriptType type, Event event) {
ScriptController.Instance.globalNpcScripts.callScript(type, event);
callScript(type, event, "$$IGNORED$$", null);
}
@Override
public void callScript(String hookName, Event event) {
try {
EnumScriptType enumScriptType = EnumScriptType.valueOf(hookName);
EnumScriptType enumScriptType = EnumScriptType.valueOfIgnoreCase(hookName);
this.callScript(enumScriptType, event);
} catch (IllegalArgumentException ignored) {}
}