mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 01:05:12 +00:00
Added getHookName() function
This commit is contained in:
1 parent
8ea98cba9b
commit
681f62eeb6
12 files changed
+383
-3
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user