Added getHookName() function

This commit is contained in:
Luis C.M committed 2022-11-24 16:46:20 -06:00
1 parent 8ea98cba9b
commit 681f62eeb6
12 files changed
+383 -3

No files matched your search

+1 -1
View File
@@ -519,7 +519,7 @@ public class EventHooks {
public static boolean onCNPCNaturalSpawn(CustomNPCsEvent.CNPCNaturalSpawnEvent event) {
ForgeDataScript handler = ScriptController.Instance.forgeScripts;
if (handler.isEnabled()) {
handler.callScript("onCNPCNaturalSpawn", event);
handler.callScript(EnumScriptType.CNPC_NATURAL_SPAWN, event);
return NpcAPI.EVENT_BUS.post(event);
}
return true;