Skip to content

Commit 5c119f2

Browse files
committed
constructor told me to do this
1 parent 40904b7 commit 5c119f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/kotlin/com/lambda/module/modules/player/InventoryMove.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
package com.lambda.module.modules.player
1919

2020
import com.lambda.Lambda.mc
21+
import com.lambda.event.events.UpdateManagerEvent
22+
import com.lambda.event.listener.SafeListener.Companion.listen
2123
import com.lambda.gui.LambdaScreen
2224
import com.lambda.interaction.request.rotating.Rotation
2325
import com.lambda.interaction.request.rotating.RotationConfig
24-
import com.lambda.interaction.request.rotating.RotationManager.onRotate
2526
import com.lambda.interaction.request.rotating.RotationMode
2627
import com.lambda.interaction.request.rotating.visibilty.lookAt
2728
import com.lambda.module.Module
@@ -67,8 +68,8 @@ object InventoryMove : Module(
6768
this == null
6869

6970
init {
70-
onRotate {
71-
if (!arrowKeys || mc.currentScreen.hasInputOrNull) return@onRotate
71+
listen<UpdateManagerEvent.Rotation> {
72+
if (!arrowKeys || mc.currentScreen.hasInputOrNull) return@listen
7273

7374
val pitch = (isKeyPressed(GLFW_KEY_DOWN, GLFW_KEY_KP_2).toFloatSign() -
7475
isKeyPressed(GLFW_KEY_UP, GLFW_KEY_KP_8).toFloatSign()) * speed

0 commit comments

Comments
 (0)