From 6d8b40d3f1a0c426f51d92f2e1f7d3874eb5946a Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 24 Aug 2014 23:12:07 +0800 Subject: [PATCH] Update CitizensNPC.java --- src/main/java/net/citizensnpcs/npc/CitizensNPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java index 4da0551f7..5afa1e8fd 100644 --- a/src/main/java/net/citizensnpcs/npc/CitizensNPC.java +++ b/src/main/java/net/citizensnpcs/npc/CitizensNPC.java @@ -165,8 +165,8 @@ public class CitizensNPC extends AbstractNPC { Messaging.debug("Tried to spawn", getId(), "while already spawned."); return false; } - at = at.clone(); + getTrait(CurrentLocation.class).setLocation(at); entityController.spawn(at, this); net.minecraft.server.v1_7_R4.Entity mcEntity = ((CraftEntity) getEntity()).getHandle(); boolean couldSpawn = !Util.isLoaded(at) ? false : mcEntity.world.addEntity(mcEntity, SpawnReason.CUSTOM);