Fixed IRole.getType returning out of order types for scripting.

This commit is contained in:
Kam committed 2024-01-25 14:27:02 -05:00
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);
}