aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-23 10:50:42 +0200
committerGitHub <noreply@github.com>2024-08-23 10:50:42 +0200
commit795e30bcecb1f72a9eb32331867d20f29554505a (patch)
tree75d691dd6c551ac56c88c396092a8c1d27c6509d /src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
parent7d45133463f375252ba3e7e269cf1d27162aa1ee (diff)
downloadskyhanni-795e30bcecb1f72a9eb32331867d20f29554505a.tar.gz
skyhanni-795e30bcecb1f72a9eb32331867d20f29554505a.tar.bz2
skyhanni-795e30bcecb1f72a9eb32331867d20f29554505a.zip
Fix: Patcher Breaking Lines (#2387)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
index 9ff6053e7..f4a57cb18 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/RenderUtils.kt
@@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.GuiRenderItemEvent
import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent
import at.hannibal2.skyhanni.events.RenderGuiItemOverlayEvent
+import at.hannibal2.skyhanni.features.misc.PatcherFixes
import at.hannibal2.skyhanni.features.misc.RoundedRectangleOutlineShader
import at.hannibal2.skyhanni.features.misc.RoundedRectangleShader
import at.hannibal2.skyhanni.features.misc.RoundedTextureShader
@@ -1132,6 +1133,7 @@ object RenderUtils {
fun LorenzRenderWorldEvent.exactPlayerEyeLocation(): LorenzVec {
val player = Minecraft.getMinecraft().thePlayer
val add = if (player.isSneaking) LorenzVec(0.0, 1.54, 0.0) else LorenzVec(0.0, 1.62, 0.0)
+ PatcherFixes.onPlayerEyeLine()
return exactLocation(player) + add
}