Fixed bug with NPC dialog scripts.

This commit is contained in:
Luis C.M committed 2022-04-13 04:25:44 -05:00
1 parent 65bb3b5939
commit 1e88a4458d
2 files changed
+11 -5

No files matched your search

@@ -6,19 +6,19 @@ import noppes.npcs.scripted.NpcAPI;
import noppes.npcs.scripted.interfaces.IPlayer;
public class ScriptEventDialog extends ScriptEvent{
public EntityPlayer player;
public IPlayer player;
public int dialog;
public int option;
public Dialog dialogObj;
public ScriptEventDialog(EntityPlayer player, int dialog, int option, Dialog dialogObj){
this.player = player;
this.player = (IPlayer)NpcAPI.Instance().getIEntity(player);
this.dialog = dialog;
this.option = option;
this.dialogObj = dialogObj;
}
public EntityPlayer getPlayer() {
public IPlayer getPlayer() {
return player;
}