From d20f1b7bdc12e309d1e2aa00983eb896c978086f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 1 Jun 2011 18:35:57 -0400 Subject: [PATCH] fixed cross world teleport By: Tahg --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 30f1b6079b..eded0b3130 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -173,10 +173,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (oldWorld != newWorld) { this.entity = manager.a(entity, newWorld.dimension, false); - return true; - } else { - return entity.netServerHandler.teleport(location); } + return entity.netServerHandler.teleport(location); } public void setSneaking(boolean sneak) {