Skip to content

Commit 3f4bcc9

Browse files
committed
book edit screen as an input screen in inventory move
1 parent 059daf6 commit 3f4bcc9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

2020
import com.lambda.Lambda.mc
21-
import com.lambda.event.events.UpdateManagerEvent
21+
import com.lambda.event.events.TickEvent
2222
import com.lambda.event.listener.SafeListener.Companion.listen
2323
import com.lambda.gui.LambdaScreen
2424
import com.lambda.interaction.managers.rotating.Rotation
@@ -34,6 +34,7 @@ import net.minecraft.client.gui.screen.Screen
3434
import net.minecraft.client.gui.screen.ingame.AbstractCommandBlockScreen
3535
import net.minecraft.client.gui.screen.ingame.AbstractSignEditScreen
3636
import net.minecraft.client.gui.screen.ingame.AnvilScreen
37+
import net.minecraft.client.gui.screen.ingame.BookEditScreen
3738
import org.lwjgl.glfw.GLFW.GLFW_KEY_DOWN
3839
import org.lwjgl.glfw.GLFW.GLFW_KEY_KP_2
3940
import 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() -

0 commit comments

Comments
 (0)