diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 16a28ff..6a2df21 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/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; }