Skip to content

Commit cdd8ec0

Browse files
committed
Fix saving player respawn locations with non-normalized yaw
Affected Minecraft 1.21.9+
1 parent 6138fd0 commit cdd8ec0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCPlayer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,9 @@ public UUID getUniqueID() {
790790

791791
@Override
792792
public void setBedSpawnLocation(MCLocation l, boolean forced) {
793-
p.setBedSpawnLocation((Location) l.getHandle(), forced);
793+
Location loc = (Location) l.getHandle();
794+
loc.setYaw(Location.normalizeYaw(loc.getYaw()));
795+
p.setBedSpawnLocation(loc, forced);
794796
}
795797

796798
@Override

0 commit comments

Comments
 (0)