Move Menu keybind to Hotkey.kt
This commit is contained in:
@@ -36,6 +36,15 @@ class Hotkey {
|
||||
"SciFy"
|
||||
)
|
||||
)
|
||||
// Open Menu Hotkey
|
||||
val menu = KeyBindingHelper.registerKeyBinding(
|
||||
KeyBinding(
|
||||
"Menu",
|
||||
InputUtil.Type.KEYSYM,
|
||||
GLFW.GLFW_KEY_RIGHT_SHIFT,
|
||||
"SciFy"
|
||||
)
|
||||
)
|
||||
ClientTickEvents.END_CLIENT_TICK.register(ClientTickEvents.EndTick {
|
||||
while (warp.wasPressed()) {
|
||||
MinecraftClient.getInstance().networkHandler!!.sendChatCommand("warp")
|
||||
@@ -46,6 +55,9 @@ class Hotkey {
|
||||
while (guide.wasPressed()) {
|
||||
MinecraftClient.getInstance().networkHandler!!.sendChatCommand("guide")
|
||||
}
|
||||
while (menu.wasPressed()) {
|
||||
MinecraftClient.getInstance().setScreen(Menu())
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user