From f8d2b930f9d9f377a44d153bdf8b9863a22397c9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 29 Dec 2010 01:25:32 +0000 Subject: [PATCH] Moved the PLAYER_MOVE and PLAYER_TELEPORT hooks to be packet-based, fixed player.getLocation() to return pitch/yaw By: Dinnerbone --- paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java index b347c11d96..f42bd63728 100644 --- a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java +++ b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java @@ -26,7 +26,7 @@ public class CraftPlayer implements Player { } public Location getLocation() { - return new Location(getWorld(), player.p, player.q, player.r); + return new Location(getWorld(), player.p, player.q, player.r, player.v, player.w); } public World getWorld() {