From c5bd0fedeec1ec3b3146033ff90a622bdd9429bb Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 7 Nov 2023 17:48:38 +0800 Subject: [PATCH] Decrease match score by key --- .../shedaniel/rei/impl/client/gui/config/REIConfigScreen.java | 1 + .../impl/client/gui/config/components/ConfigSearchWidget.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java index cfb1b6c64..5732dad64 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/REIConfigScreen.java @@ -53,6 +53,7 @@ import net.minecraft.client.Minecraft; import net.minecraft.client.gui.components.events.GuiEventListener; import net.minecraft.client.gui.screens.Screen; +import net.minecraft.client.resources.language.I18n; import org.apache.commons.lang3.mutable.Mutable; import org.apache.commons.lang3.mutable.MutableObject; import org.jetbrains.annotations.Nullable; diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigSearchWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigSearchWidget.java index e0012a575..e52288af4 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigSearchWidget.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/config/components/ConfigSearchWidget.java @@ -299,7 +299,7 @@ public Object decompose(String searchTerm) { } public enum MatchType { - KEY(1.0F), + KEY(0.0005F), NAME(0.98F), DESCRIPTION(0.8F), ;