mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 14:19:13 +00:00
Migrated all EffectScript.ScriptType hooks to EnumScriptType
This commit is contained in:
1 parent
50e9f1b3e5
commit
d835d2acb0
5 files changed
+17
-31
No files matched your search
@@ -2,7 +2,6 @@ package noppes.npcs.controllers;
|
||||
|
||||
import noppes.npcs.api.handler.IScriptHookHandler;
|
||||
import noppes.npcs.constants.EnumScriptType;
|
||||
import noppes.npcs.controllers.data.EffectScript;
|
||||
import noppes.npcs.controllers.data.RecipeScript;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -145,9 +144,9 @@ public class ScriptHookController implements IScriptHookHandler {
|
||||
EnumScriptType.PROFILE_CHANGE.function,
|
||||
EnumScriptType.PROFILE_REMOVE.function,
|
||||
EnumScriptType.PROFILE_CREATE.function,
|
||||
EffectScript.ScriptType.OnEffectAdd.function,
|
||||
EffectScript.ScriptType.OnEffectTick.function,
|
||||
EffectScript.ScriptType.OnEffectRemove.function
|
||||
EnumScriptType.ON_EFFECT_ADD.function,
|
||||
EnumScriptType.ON_EFFECT_TICK.function,
|
||||
EnumScriptType.ON_EFFECT_REMOVE.function
|
||||
);
|
||||
|
||||
// Block hooks
|
||||
@@ -209,9 +208,9 @@ public class ScriptHookController implements IScriptHookHandler {
|
||||
|
||||
// Effect hooks
|
||||
registerBuiltIn(CONTEXT_EFFECT,
|
||||
EffectScript.ScriptType.OnEffectAdd.function,
|
||||
EffectScript.ScriptType.OnEffectTick.function,
|
||||
EffectScript.ScriptType.OnEffectRemove.function
|
||||
EnumScriptType.ON_EFFECT_ADD.function,
|
||||
EnumScriptType.ON_EFFECT_TICK.function,
|
||||
EnumScriptType.ON_EFFECT_REMOVE.function
|
||||
);
|
||||
|
||||
// Forge hooks - just init, the rest are dynamically discovered
|
||||
|
||||
Reference in new issue
Block a user