Prevent NPE with null value for keybind (#358)

This commit is contained in:
miozune authored and GitHub committed 2023-03-03 11:15:13 +01:00
1 parent 98547c2bcf
commit 088d9c08a8
1 file changed
+1 -1
@@ -417,7 +417,7 @@ public class NEIClientConfig {
}
public static int getKeyBinding(String string) {
return getSetting("keys." + string).getIntValue();
return getSetting("keys." + string).getIntValue(Keyboard.KEY_NONE);
}
public static void setDefaultKeyBinding(String string, int key) {