diff options
author | Pasqual Koschmieder <[email protected]> | 2022-09-30 21:03:42 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-30 21:03:42 +0200 |
commit | 14c32bc43d640d7152c82ac6ca64496137227995 (patch) | |
tree | 74d14ad6539c359e56e1137a9189541c4774bfd2 | |
parent | c6d737528ddb14e360471b39eb97f65e959f88a2 (diff) | |
download | Paper-14c32bc43d640d7152c82ac6ca64496137227995.tar.gz Paper-14c32bc43d640d7152c82ac6ca64496137227995.zip |
Fix wrong yaw and pitch of CommandSourceStack#getBukkitLocation (#8411)
-rw-r--r-- | patches/server/0298-Implement-Brigadier-Mojang-API.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0298-Implement-Brigadier-Mojang-API.patch b/patches/server/0298-Implement-Brigadier-Mojang-API.patch index 9fb421afef..f8a40cc922 100644 --- a/patches/server/0298-Implement-Brigadier-Mojang-API.patch +++ b/patches/server/0298-Implement-Brigadier-Mojang-API.patch @@ -34,7 +34,7 @@ index da6250df1c5f3385b683cffde47754bca4606f5e..3384501f83d445f45aa8233e98c7597d public void removeCommand(String name) { this.children.remove(name); diff --git a/src/main/java/net/minecraft/commands/CommandSourceStack.java b/src/main/java/net/minecraft/commands/CommandSourceStack.java -index 3308d684fc6cd0a83e190a52693b29d30e0087cb..aadddbc16aa719677c3b6fc4969b6145b9b9ee0b 100644 +index 3308d684fc6cd0a83e190a52693b29d30e0087cb..fa258155b1cbdd8efde15ec59986d0ab56245ddd 100644 --- a/src/main/java/net/minecraft/commands/CommandSourceStack.java +++ b/src/main/java/net/minecraft/commands/CommandSourceStack.java @@ -39,7 +39,7 @@ import net.minecraft.world.phys.Vec2; @@ -66,7 +66,7 @@ index 3308d684fc6cd0a83e190a52693b29d30e0087cb..aadddbc16aa719677c3b6fc4969b6145 + 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 + |