mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
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:
parent
6ca8defced
commit
f8d2b930f9
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue