From 0599aa533cbacd9d4f22ebc529cc64f4e86e6edc Mon Sep 17 00:00:00 2001 From: ronald Date: Sat, 29 Jul 2023 22:48:01 -0500 Subject: val --- src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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!! -- cgit