mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +00:00
1 parent
22169c81a0
commit
934cc3d7cd
31 files changed
+206
-694
No files matched your search
@@ -236,14 +236,13 @@ 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.valueOfIgnoreCase(hookName);
|
||||
EnumScriptType enumScriptType = EnumScriptType.valueOf(hookName);
|
||||
this.callScript(enumScriptType, event);
|
||||
} catch (IllegalArgumentException ignored) {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user