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:
@ -26,7 +26,7 @@ public class CraftPlayer implements Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Location getLocation() {
|
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() {
|
public World getWorld() {
|
||||||
|
|||||||
Reference in New Issue
Block a user