mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-29 19:41:50 +01:00
Clone destination location in spawn(Location)
This commit is contained in:
parent
e68f4d2643
commit
3e8f888326
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user