Fix label of non-letter keys in hotkey buttons

This commit is contained in:
Jonas Herzig
2020-11-05 16:03:00 +01:00
parent f51f6032ca
commit 6016ebece7

View File

@@ -744,7 +744,7 @@ public class MCVer {
public static String getBoundKey(KeyBinding keyBinding) { public static String getBoundKey(KeyBinding keyBinding) {
try { try {
//#if MC>=11600 //#if MC>=11600
return keyBinding.getBoundKeyLocalizedText().asString(); return keyBinding.getBoundKeyLocalizedText().getString();
//#else //#else
//#if MC>=11400 //#if MC>=11400
//$$ return keyBinding.getLocalizedName(); //$$ return keyBinding.getLocalizedName();