From fee12c83e166b8a81e295de92c0b20e85b96181a Mon Sep 17 00:00:00 2001 From: Protoxy <30320751+Protoxy22@users.noreply.github.com> Date: Sun, 7 Aug 2022 11:37:29 +0200 Subject: [PATCH] Custom MW Gui can be opened on a side keybind (1) --- .../client/handler/KeyInputHandler.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/modularwarfare/client/handler/KeyInputHandler.java b/src/main/java/com/modularwarfare/client/handler/KeyInputHandler.java index c9318298..5667a935 100644 --- a/src/main/java/com/modularwarfare/client/handler/KeyInputHandler.java +++ b/src/main/java/com/modularwarfare/client/handler/KeyInputHandler.java @@ -39,9 +39,8 @@ public KeyInputHandler() { keyBinds.add(new KeyEntry(KeyType.AddAttachment)); keyBinds.add(new KeyEntry(KeyType.Flashlight)); - if (!ModConfig.INSTANCE.general.customInventory) { - keyBinds.add(new KeyEntry(KeyType.Backpack)); - } + keyBinds.add(new KeyEntry(KeyType.Backpack)); + keyBinds.add(new KeyEntry(KeyType.Left)); keyBinds.add(new KeyEntry(KeyType.Right)); @@ -160,10 +159,8 @@ public void handleKeyInput(KeyType keyType) { } break; case Backpack: - if (!ModConfig.INSTANCE.general.customInventory) { - if (!entityPlayer.isCreative()) { - ModularWarfare.NETWORK.sendToServer(new PacketOpenGui(0)); - } + if (!entityPlayer.isCreative()) { + ModularWarfare.NETWORK.sendToServer(new PacketOpenGui(0)); } break; case Left: @@ -185,4 +182,4 @@ public void handleKeyInput(KeyType keyType) { } } } -} \ No newline at end of file +}