Browse Source

Fix from PaperSpigot (d02fb4e971)

master
Robotia 9 years ago
parent
commit
f8557e86aa
  1. 3
      src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java

3
src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java

@ -419,8 +419,9 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
entity.teleportTo(location, cause.isPortal());
return true;
}
// Spigot
// Spigot end
entity.setPositionAndRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
entity.world.entityJoinedWorld(entity, false);
// entity.setLocation() throws no event, and so cannot be cancelled
return true;
}

Loading…
Cancel
Save