Update CitizensNPC.java

This commit is contained in:
fullwall 2014-08-24 23:12:07 +08:00
parent 4e0169f5a0
commit 6d8b40d3f1

View File

@ -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);