Fixed some scripted item events, and fixed positioning of scripted items.

This commit is contained in:
Luis C.M committed 2022-05-11 13:30:13 -05:00
1 parent 747730face
commit 11cc46b48f
20 files changed
+231 -146

No files matched your search

@@ -120,7 +120,7 @@ public class NPCDataScript implements IScriptHandler {
}
public ICustomNpc getNpc() {
if (this.npcAPI == null) {
this.npcAPI = (ICustomNpc) NpcAPI.Instance().getIEntity(this.npc);
this.npcAPI = (ICustomNpc) ScriptController.Instance.getScriptForEntity(this.npc);
}
return this.npcAPI;
}