From 73e6e274ff0a8a4917e59f8a1fce97377c8be034 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 8 Jan 2019 09:26:34 +1100 Subject: [PATCH] SPIGOT-4566: Don't special case NETHER_PORTAL teleport reason from plugins By: md_5 --- .../main/java/org/bukkit/craftbukkit/entity/CraftEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java index 521dd48ed..5f7e0bd2a 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java +++ b/paper-server/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; }