From b15abb12cb5bd7f5b59c968e52f84070672655ae Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 8 Jan 2019 09:26:34 +1100 Subject: [PATCH] SPIGOT-4566: Don't special case NETHER_PORTAL teleport reason from plugins --- src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 521dd48ed1..5f7e0bd2a0 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java @@ -308,7 +308,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity { // Let the server handle cross world teleports if (!location.getWorld().equals(getWorld())) { - entity.teleportTo(location, cause == TeleportCause.NETHER_PORTAL); + entity.teleportTo(location, false); return true; }