Skip to content

Commit

Permalink
Don't call bukkitEntity.teleport too early for player entities
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Aug 23, 2013
1 parent 2289934 commit dc370f4
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -22,7 +22,6 @@ protected LivingEntity createEntity(final Location at, final NPC npc) {
final EntityHumanNPC handle = new EntityHumanNPC(ws.getServer().getServer(), ws, Colorizer.parseColors(npc
.getFullName()), new PlayerInteractManager(ws), npc);
handle.setPositionRotation(at.getX(), at.getY(), at.getZ(), at.getYaw(), at.getPitch());
handle.getBukkitEntity().teleport(at);
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit dc370f4

Please sign in to comment.