From 6088ffd20e5ed496c113a38a1f9c136fbb4d6dd0 Mon Sep 17 00:00:00 2001 From: Zelo101 Date: Mon, 17 Jun 2024 03:51:21 +0100 Subject: [PATCH] Revert keybinds for now (See #6) --- .../zelo/java/notenoughservers/NotEnoughServers.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/dev/zelo/java/notenoughservers/NotEnoughServers.java b/src/main/java/dev/zelo/java/notenoughservers/NotEnoughServers.java index e7f643a..f38cb9b 100644 --- a/src/main/java/dev/zelo/java/notenoughservers/NotEnoughServers.java +++ b/src/main/java/dev/zelo/java/notenoughservers/NotEnoughServers.java @@ -28,8 +28,6 @@ import java.util.Optional; import java.util.concurrent.CompletableFuture; -import org.lwjgl.glfw.GLFW; - import static net.fabricmc.fabric.api.client.command.v2.ClientCommandManager.argument; public class NotEnoughServers implements ClientModInitializer { @@ -37,11 +35,11 @@ public class NotEnoughServers implements ClientModInitializer { public static final ConfigHolder CONFIG = NotEnoughServersConfig.init(); - public static KeyBinding SERVER_LIST_TOP = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_TOP", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_HOME, "not-enough-servers.name")); - public static KeyBinding SERVER_LIST_BOTTOM = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_BOTTOM", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_END, "not-enough-servers.name")); - public static KeyBinding SERVER_DELETE = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_DELETE", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_DELETE, "not-enough-servers.name")); - public static KeyBinding SERVER_RENAME = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_RENAME", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_R, "not-enough-servers.name")); - public static KeyBinding SERVER_ADD = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_ADD", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_A, "not-enough-servers.name")); +// public static KeyBinding SERVER_LIST_TOP = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_TOP", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_HOME, "not-enough-servers.name")); +// public static KeyBinding SERVER_LIST_BOTTOM = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_BOTTOM", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_END, "not-enough-servers.name")); +// public static KeyBinding SERVER_DELETE = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_DELETE", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_DELETE, "not-enough-servers.name")); +// public static KeyBinding SERVER_RENAME = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_RENAME", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_R, "not-enough-servers.name")); +// public static KeyBinding SERVER_ADD = KeyBindingHelper.registerKeyBinding(new KeyBinding("not-enough-servers.MS_ADD", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_A, "not-enough-servers.name")); public int attemptAdd(com.mojang.brigadier.context.CommandContext context) { MinecraftClient client = MinecraftClient.getInstance();