diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-09-03 09:48:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 09:48:02 +0200 |
commit | f5099a2b6d29099433e66781a8b26ab11e1902c8 (patch) | |
tree | a5829c8680d4315ff254cad51f987ab0ef5b2d12 /src/main/java/at/hannibal2/skyhanni/features | |
parent | e4f56d693a4c6cebb43006bfa507444d614072ca (diff) | |
download | skyhanni-f5099a2b6d29099433e66781a8b26ab11e1902c8.tar.gz skyhanni-f5099a2b6d29099433e66781a8b26ab11e1902c8.tar.bz2 skyhanni-f5099a2b6d29099433e66781a8b26ab11e1902c8.zip |
Backend: Graph Node Editor improvements (#2451)
Co-authored-by: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com>
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rwxr-xr-x | src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt index ebc266692..cdbb07963 100755 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenYawAndPitch.kt @@ -5,6 +5,7 @@ import at.hannibal2.skyhanni.config.enums.OutsideSbFeature import at.hannibal2.skyhanni.events.GardenToolChangeEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.round import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings @@ -29,10 +30,7 @@ object GardenYawAndPitch { if (GardenAPI.toolInHand == null && !config.showWithoutTool) return val player = Minecraft.getMinecraft().thePlayer - - var yaw = player.rotationYaw % 360 - if (yaw < 0) yaw += 360 - if (yaw > 180) yaw -= 360 + var yaw = LocationUtils.calculatePlayerYaw() val pitch = player.rotationPitch if (yaw != lastYaw || pitch != lastPitch) { |