mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 17:47:32 +00:00
Fix for the "npc" field in npc events/scripts.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user