Fix for the "npc" field in npc events/scripts.

This commit is contained in:
Luis C.M committed 2022-05-11 22:55:26 -05:00
1 parent b20babbb35
commit 02d225a269
2 files changed
+6 -2

No files matched your search

@@ -165,7 +165,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
setSize(1, 1);
this.updateTasks();
if (!this.isRemote()) {
if (!this.isRemote() && this.wrappedNPC == null) {
this.wrappedNPC = new ScriptNpc<>(this);
}
}