13
0
geforkt von Mirrors/Paper

Add yaw and pitch to CommandSourceStack#getBukkitLocation() (#8167)

Dieser Commit ist enthalten in:
ChristopheG 2022-07-21 09:26:36 +02:00
Ursprung e484f0dd39
Commit 220055020e

Datei anzeigen

@ -53,7 +53,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ public org.bukkit.Location getBukkitLocation() {
+ Vec3 pos = getPosition();
+ org.bukkit.World world = getBukkitWorld();
+ return world != null && pos != null ? new org.bukkit.Location(world, pos.x, pos.y, pos.z) : null;
+ 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;
+ }
+ // Paper end
+