From 93b688f5bfd3709da61dd2b4a6ec644c7221e426 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 28 Feb 2011 20:30:33 +0000 Subject: [PATCH] Sped up teleporting even more, + fixed isSneaking By: Dinnerbone --- .../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 3c5a120203..8a7826ba39 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 @@ -170,9 +170,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { entity.a.e = newEntity; entity = newEntity; } else { - oldWorld.manager.b(entity); entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch()); - newWorld.manager.a(entity); } } @@ -181,7 +179,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { } public boolean isSneaking() { - return entity.J(); + return entity.U(); } public void updateInventory() {