Explorar el Código

1.15.2 port, fix key searching

Jared hace 5 años
padre
commit
26babf52d2

+ 2 - 2
build.gradle

@@ -14,7 +14,7 @@ buildscript {
 apply plugin: 'net.minecraftforge.gradle'
 apply plugin: 'eclipse'
 
-version = '6.0.0'
+version = '6.1.1'
 group = 'com.blamejared.controlling'
 archivesBaseName = 'Controlling'
 
@@ -49,7 +49,7 @@ minecraft {
 }
 
 dependencies {
-    minecraft 'net.minecraftforge:forge:1.15.1-30.0.30'
+    minecraft 'net.minecraftforge:forge:1.15.2-31.0.1'
 }
 
 jar {

+ 1 - 1
src/main/java/com/blamejared/controlling/client/gui/GuiCheckBox.java

@@ -2,7 +2,7 @@ package com.blamejared.controlling.client.gui;
 
 import net.minecraft.client.Minecraft;
 import net.minecraft.client.gui.widget.button.Button;
-import net.minecraftforge.fml.client.config.GuiUtils;
+import net.minecraftforge.fml.client.gui.GuiUtils;
 
 /**
  * This class provides a checkbox style control.

+ 1 - 1
src/main/java/com/blamejared/controlling/client/gui/GuiNewControls.java

@@ -158,7 +158,7 @@ public class GuiNewControls extends ControlsScreen {
                 filters = filters.and(keyEntry -> keyEntry.getKeybinding().getKeyCategory().toLowerCase().contains(lastSearch.toLowerCase()));
                 break;
             case KEY:
-                filters = filters.and(keyEntry -> keyEntry.getKeybinding().getKey().getTranslationKey().toLowerCase().contains(lastSearch.toLowerCase()));
+                filters = filters.and(keyEntry -> keyEntry.getKeybinding().getLocalizedName().toLowerCase().contains(lastSearch.toLowerCase()));
                 break;
         }
         

+ 3 - 3
src/main/resources/META-INF/mods.toml

@@ -1,11 +1,11 @@
 modLoader="javafml" #mandatory
-loaderVersion="[30,)" #mandatory
+loaderVersion="[31,)" #mandatory
 issueTrackerURL="https://github.com/jaredlll08/Controlling/issues" #optional
 displayURL="https://minecraft.curseforge.com/projects/controlling" #optional
 authors="Jaredlll08" #optional
 [[mods]] #mandatory
 modId="controlling" #mandatory
-version="6.0.0" #mandatory
+version="6.1.1" #mandatory
 displayName="Controlling" #mandatory
 description='''
 Adds the ability to search for keybinds using their name in the KeyBinding menu, this allows players to easily find a key binding in the menu.
@@ -17,7 +17,7 @@ Adds the ability to search for keybinds using their name in the KeyBinding menu,
     # Does this dependency have to exist - if not, ordering below must be specified
     mandatory=true #mandatory
     # The version range of the dependency
-    versionRange="[30,)" #mandatory
+    versionRange="[31,)" #mandatory
     # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
     ordering="NONE"
     # Side this dependency is applied on - BOTH, CLIENT or SERVER