Skip to content

Commit 4a7b199

Browse files
committed
Fix merge I think
1 parent 34cebe3 commit 4a7b199

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • src/main/kotlin/com/lambda/module/modules/render

src/main/kotlin/com/lambda/module/modules/player/Freecam.kt renamed to src/main/kotlin/com/lambda/module/modules/render/Freecam.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2025 Lambda
2+
* Copyright 2026 Lambda
33
*
44
* This program is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
@@ -15,9 +15,9 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
package com.lambda.module.modules.player
18+
package com.lambda.module.modules.render
1919

20-
import com.lambda.Lambda.mc
20+
import com.lambda.Lambda
2121
import com.lambda.event.events.MovementEvent
2222
import com.lambda.event.events.PlayerEvent
2323
import com.lambda.event.events.RenderEvent
@@ -78,17 +78,17 @@ object Freecam : Module(
7878
private var position: Vec3d = Vec3d.ZERO
7979
private val lerpPos: Vec3d
8080
get() {
81-
val tickProgress = mc.gameRenderer.camera.lastTickProgress
81+
val tickProgress = Lambda.mc.gameRenderer.camera.lastTickProgress
8282
return prevPosition.interpolate(tickProgress, position)
8383
}
8484

85-
private var rotation: Rotation = Rotation.ZERO
85+
private var rotation: Rotation = Rotation.Companion.ZERO
8686
private var velocity: Vec3d = Vec3d.ZERO
8787
private var loading = false
8888

8989
@JvmStatic
9090
fun updateCam() {
91-
mc.gameRenderer.apply {
91+
Lambda.mc.gameRenderer.apply {
9292
camera.setRotation(rotation.yawF, rotation.pitchF)
9393
camera.setPos(lerpPos.x, lerpPos.y, lerpPos.z)
9494
}
@@ -165,7 +165,7 @@ object Freecam : Module(
165165
if (!input.isInputting) moveVec *= Vec3d(0.0, 1.0, 0.0)
166166

167167
// Apply movement
168-
velocity += moveVec
168+
velocity + moveVec
169169
velocity *= 0.6
170170

171171
// Update position
@@ -193,4 +193,4 @@ object Freecam : Module(
193193
LookAtTarget("Look At Target", "Look at the block or entity under your crosshair"),
194194
KeepRotation("Keep Rotation", "Look in the same direction as the camera");
195195
}
196-
}
196+
}

0 commit comments

Comments
 (0)