diff --git a/src/minecraft/net/machinemuse/general/gui/frame/KeybindConfigFrame.java b/src/minecraft/net/machinemuse/general/gui/frame/KeybindConfigFrame.java index 0580c2c..01548af 100644 --- a/src/minecraft/net/machinemuse/general/gui/frame/KeybindConfigFrame.java +++ b/src/minecraft/net/machinemuse/general/gui/frame/KeybindConfigFrame.java @@ -274,7 +274,13 @@ public class KeybindConfigFrame implements IGuiFrame { } private void addKeybind(int key, boolean free) { - KeyBinding keybind = new KeyBinding(Keyboard.getKeyName(key), key); + String name; + try { + name = Keyboard.getKeyName(key); + } catch (Exception e) { + name = "???"; + } + KeyBinding keybind = new KeyBinding(name, key); ClickableKeybinding clickie = new ClickableKeybinding(keybind, newKeybindButton.getPosition().plus(new MusePoint2D(0, -20)), free); KeybindManager.getKeybindings().add(clickie); }