From dbbc2a42d81768cfbf2497cb61c2c4cdd8aa9b7e Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 11 Jan 2020 00:36:30 +0800 Subject: fix search by modid --- .../java/me/shedaniel/rei/gui/widget/EntryListWidget.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java index 556695969..dd1032cbe 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java @@ -615,12 +615,13 @@ public class EntryListWidget extends WidgetWithBounds { if (argument.getFunction(!argument.isInclude()).apply(mod)) { applicable = false; break; - } - if (modName == null) - modName = ClientHelper.getInstance().getModFromModId(mod).replace(SPACE, EMPTY).toLowerCase(Locale.ROOT); - if (modName != null && !modName.isEmpty() && argument.getFunction(!argument.isInclude()).apply(modName)) { - applicable = false; - break; + } else { + if (modName == null) + modName = ClientHelper.getInstance().getModFromModId(mod).replace(SPACE, EMPTY).toLowerCase(Locale.ROOT); + if (modName != null && !modName.isEmpty() && argument.getFunction(!argument.isInclude()).apply(modName)) { + applicable = false; + break; + } } } } else if (argument.getArgumentType() == SearchArgument.ArgumentType.TEXT) { -- cgit