Clone destination location in spawn(Location)

This commit is contained in:
fullwall 2013-08-05 13:03:19 +08:00
parent e68f4d2643
commit 3e8f888326

View File

@ -145,6 +145,7 @@ public class CitizensNPC extends AbstractNPC {
return false;
}
at = at.clone();
entityController.spawn(at, this);
EntityLiving mcEntity = ((CraftLivingEntity) getBukkitEntity()).getHandle();
boolean couldSpawn = !Util.isLoaded(at) ? false : mcEntity.world.addEntity(mcEntity, SpawnReason.CUSTOM);