mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
ScriptNpc:
-Fixed setRole and setJob functions.
This commit is contained in:
1 parent
68600d7d00
commit
958aeea46a
1 file changed
+2
@@ -351,6 +351,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
for (EnumRoleType e : EnumRoleType.values()) {
|
||||
if (e.ordinal() == role) {
|
||||
npc.advanced.role = e;
|
||||
npc.advanced.setRole(role);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -383,6 +384,7 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
for (EnumJobType e : EnumJobType.values()) {
|
||||
if (e.ordinal() == job) {
|
||||
npc.advanced.job = e;
|
||||
npc.advanced.setJob(job);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user