Moved the PLAYER_MOVE and PLAYER_TELEPORT hooks to be packet-based, fixed player.getLocation() to return pitch/yaw

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2010-12-29 01:25:32 +00:00
parent 6ca8defced
commit f8d2b930f9

View file

@ -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() {