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

This commit is contained in:
Dinnerbone
2010-12-29 01:25:32 +00:00
parent 6d28eb0111
commit 193bf01367
3 changed files with 39 additions and 318 deletions

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