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

@@ -138,7 +138,7 @@ public class PlayerDataScript implements IScriptHandler {
}
public IPlayer getPlayer() {
if (this.playerAPI == null) {
this.playerAPI = (IPlayer) NpcAPI.Instance().getIEntity(this.player);
this.playerAPI = (IPlayer) ScriptController.Instance.getScriptForEntity(this.player);
}
return this.playerAPI;
}