aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java13
1 files 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) {