13
0
geforkt von Mirrors/Paper

Fix wrong yaw and pitch of CommandSourceStack#getBukkitLocation (#8411)

Dieser Commit ist enthalten in:
Pasqual Koschmieder 2022-09-30 21:03:42 +02:00
Ursprung 1fe1b8b78e
Commit 99a00c8e1c

Datei anzeigen

@ -66,7 +66,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ Vec3 pos = getPosition();
+ org.bukkit.World world = getBukkitWorld();
+ Vec2 rot = getRotation();
+ return world != null && pos != null ? new org.bukkit.Location(world, pos.x, pos.y, pos.z, rot != null ? rot.x : 0, rot != null ? rot.y : 0) : null;
+ return world != null && pos != null ? new org.bukkit.Location(world, pos.x, pos.y, pos.z, rot != null ? rot.y : 0, rot != null ? rot.x : 0) : null;
+ }
+ // Paper end
+