diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntitySpawnListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntitySpawnListener.java index e094baf9c..0bf5e75e8 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntitySpawnListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntitySpawnListener.java @@ -100,15 +100,15 @@ public class EntitySpawnListener implements Listener { if (!originWorld.equals(world)) { if (!ignoreTP) { if (!world.getName().equalsIgnoreCase(originWorld + "_the_end")) { + if (entity.getType() == EntityType.PLAYER) { + return; + } try { ignoreTP = true; PaperLib.teleportAsync(entity, origin); } finally { ignoreTP = false; } - if (entity.getType() == EntityType.PLAYER) { - return; - } if (entity.getLocation().getWorld().equals(world)) { entity.remove(); }