mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 21:05:06 +00:00
Fixed IRole.getType returning out of order types for scripting.
This commit is contained in:
1 parent
e81f9403a1
commit
75ba7a792b
4 files changed
+26
-6
No files matched your search
@@ -404,6 +404,8 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
return new ScriptRoleTrader(npc);
|
||||
else if(npc.advanced.role == EnumRoleType.Transporter)
|
||||
return new ScriptRoleTransporter(npc);
|
||||
else if(npc.advanced.role == EnumRoleType.Companion)
|
||||
return new ScriptRoleCompanion(npc);
|
||||
return new ScriptRoleInterface(npc);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user