diff options
author | ronald <inglettronald@gmail.com> | 2023-07-29 22:48:01 -0500 |
---|---|---|
committer | ronald <inglettronald@gmail.com> | 2023-07-29 22:48:01 -0500 |
commit | 0599aa533cbacd9d4f22ebc529cc64f4e86e6edc (patch) | |
tree | 586d802f321036e5a014d23684b6cfe7a215d815 /src/main/kotlin/com | |
parent | 655a52aca8e7d7ebea63f3fcd30d1d6e8b916f61 (diff) | |
download | DulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.tar.gz DulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.tar.bz2 DulkirMod-Fabric-0599aa533cbacd9d4f22ebc529cc64f4e86e6edc.zip |
val
Diffstat (limited to 'src/main/kotlin/com')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/AotvHighlight.kt | 2 |
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!! |