File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/kotlin/com/lambda/module/modules/player Expand file tree Collapse file tree 1 file changed +4
-2
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
21+ import com.lambda.event.events.TickEvent
2222import com.lambda.event.listener.SafeListener.Companion.listen
2323import com.lambda.gui.LambdaScreen
2424import com.lambda.interaction.managers.rotating.Rotation
@@ -34,6 +34,7 @@ import net.minecraft.client.gui.screen.Screen
3434import net.minecraft.client.gui.screen.ingame.AbstractCommandBlockScreen
3535import net.minecraft.client.gui.screen.ingame.AbstractSignEditScreen
3636import net.minecraft.client.gui.screen.ingame.AnvilScreen
37+ import net.minecraft.client.gui.screen.ingame.BookEditScreen
3738import org.lwjgl.glfw.GLFW.GLFW_KEY_DOWN
3839import org.lwjgl.glfw.GLFW.GLFW_KEY_KP_2
3940import org.lwjgl.glfw.GLFW.GLFW_KEY_KP_4
@@ -65,10 +66,11 @@ object InventoryMove : Module(
6566 this is AnvilScreen ||
6667 this is AbstractCommandBlockScreen ||
6768 this is LambdaScreen ||
69+ this is BookEditScreen ||
6870 this == null
6971
7072 init {
71- listen<UpdateManagerEvent . Rotation > {
73+ listen<TickEvent . Pre > {
7274 if (! arrowKeys || mc.currentScreen.hasInputOrNull) return @listen
7375
7476 val pitch = (isKeyPressed(GLFW_KEY_DOWN , GLFW_KEY_KP_2 ).toFloatSign() -
You can’t perform that action at this time.
0 commit comments