aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorronald <inglettronald@gmail.com>2023-07-29 22:48:01 -0500
committerronald <inglettronald@gmail.com>2023-07-29 22:48:01 -0500
commit0599aa533cbacd9d4f22ebc529cc64f4e86e6edc (patch)
tree586d802f321036e5a014d23684b6cfe7a215d815 /src
parent655a52aca8e7d7ebea63f3fcd30d1d6e8b916f61 (diff)
downloadDulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.tar.gz
DulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.tar.bz2
DulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.zip
val
Diffstat (limited to 'src')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt b/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt
index 9091351..5cce244 100644
--- a/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt
@@ -68,7 +68,7 @@ object AotvHighlight {
private fun raycast(entity: Entity, maxDistance: Double, tickDelta: Float): HitResult {
// 1.7 if not crouch, 1.54 if crouch
val crouching = mc.player!!.isSneaking
- var vec3d: Vec3d = mc.player!!.pos.add(0.0, if (crouching) 1.54 else 1.7, 0.0)
+ val vec3d: Vec3d = mc.player!!.pos.add(0.0, if (crouching) 1.54 else 1.7, 0.0)
val vec3d2: Vec3d = entity.getRotationVec(tickDelta)
val vec3d3 = vec3d.add(vec3d2.x * maxDistance, vec3d2.y * maxDistance, vec3d2.z * maxDistance)
return mc.world!!