File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/kotlin/com/lambda/module/modules/player Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818package com.lambda.module.modules.player
1919
2020import com.lambda.Lambda.mc
21+ import com.lambda.event.events.UpdateManagerEvent
22+ import com.lambda.event.listener.SafeListener.Companion.listen
2123import com.lambda.gui.LambdaScreen
2224import com.lambda.interaction.request.rotating.Rotation
2325import com.lambda.interaction.request.rotating.RotationConfig
24- import com.lambda.interaction.request.rotating.RotationManager.onRotate
2526import com.lambda.interaction.request.rotating.RotationMode
2627import com.lambda.interaction.request.rotating.visibilty.lookAt
2728import 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
You can’t perform that action at this time.
0 commit comments