Skip to content

Commit c2eed02

Browse files
committed
fix: Correctly save quit location
1 parent 58e597d commit c2eed02

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

authme-core/src/main/java/fr/xephi/authme/data/auth/PlayerAuth.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ public int getGroupId() {
7575
}
7676

7777
public void setQuitLocation(Location location) {
78-
x = location.getBlockX();
79-
y = location.getBlockY();
80-
z = location.getBlockZ();
78+
x = location.getX();
79+
y = location.getY();
80+
z = location.getZ();
8181
world = location.getWorld().getName();
82+
yaw = location.getYaw();
83+
pitch = location.getPitch();
8284
}
8385

8486
public double getQuitLocX() {

0 commit comments

Comments
 (0)