aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-20 22:38:27 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-09-20 22:38:27 +0200
commited91bbeaca46b3bbbf51cbeb208b14aa87de1cf6 (patch)
tree9150efdb6258da7d84c6fca19315b21244ab63c9 /src/main/java/at/hannibal2/skyhanni/utils
parenta99f0bdd1c2c5df1495996844dcf62791c19498d (diff)
downloadskyhanni-ed91bbeaca46b3bbbf51cbeb208b14aa87de1cf6.tar.gz
skyhanni-ed91bbeaca46b3bbbf51cbeb208b14aa87de1cf6.tar.bz2
skyhanni-ed91bbeaca46b3bbbf51cbeb208b14aa87de1cf6.zip
misc changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt
index ae0028b33..ae7ec12de 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/BlockUtils.kt
@@ -41,8 +41,7 @@ object BlockUtils {
}
fun rayTrace(start: LorenzVec, direction: LorenzVec, distance: Double = 50.0): LorenzVec? {
- val help = direction.normalize() * distance
- val target = start + help
+ val target = start + direction.normalize() * distance
val result = Minecraft.getMinecraft().theWorld.rayTraceBlocks(start.toVec3(), target.toVec3())
return result?.blockPos?.toLorenzVec()