Skip to content

Commit

Permalink
Custom MW Gui can be opened on a side keybind (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Protoxy22 authored Aug 7, 2022
1 parent f8dfdf8 commit fee12c8
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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:
Expand All @@ -185,4 +182,4 @@ public void handleKeyInput(KeyType keyType) {
}
}
}
}
}

0 comments on commit fee12c8

Please sign in to comment.