Fixed executeCommand() function for scripting API on the server-side.

This commit is contained in:
luisc committed 2021-10-19 19:49:43 -05:00
1 parent 8b710ed520
commit 5515f5ef83
6 files changed
+25 -20

No files matched your search

@@ -105,8 +105,9 @@ import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
public abstract class EntityNPCInterface extends EntityCreature implements IEntityAdditionalSpawnData, ICommandSender, IRangedAttackMob, IBossDisplayData{
public ICustomNpc wrappedNPC;
private static final GameProfileAlt chateventProfile = new GameProfileAlt();
public static final GameProfileAlt chateventProfile = new GameProfileAlt();
public static FakePlayer chateventPlayer;
public static FakePlayer CommandPlayer;
public DataDisplay display;
public DataStats stats;
public DataAI ai;
@@ -131,8 +132,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
private int taskCount = 1;
public int lastInteract = 0;
public static FakePlayer CommandPlayer;
public Faction faction; //should only be used server side
private EntityAIRangedAttack aiRange;