From 220055020e1bd614ea205b90454a120ca35c0ec9 Mon Sep 17 00:00:00 2001 From: ChristopheG <61288881+chrisgdt@users.noreply.github.com> Date: Thu, 21 Jul 2022 09:26:36 +0200 Subject: [PATCH] Add yaw and pitch to CommandSourceStack#getBukkitLocation() (#8167) --- patches/server/Implement-Brigadier-Mojang-API.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/server/Implement-Brigadier-Mojang-API.patch b/patches/server/Implement-Brigadier-Mojang-API.patch index a00fd60b6..d6e8b84b5 100644 --- a/patches/server/Implement-Brigadier-Mojang-API.patch +++ b/patches/server/Implement-Brigadier-Mojang-API.patch @@ -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 +