aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java6
1 files changed, 2 insertions, 4 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 dd1032cbe..5804f021b 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java
@@ -613,15 +613,13 @@ public class EntryListWidget extends WidgetWithBounds {
mod = stack.getIdentifier().map(Identifier::getNamespace).orElse("").replace(SPACE, EMPTY).toLowerCase(Locale.ROOT);
if (mod != null && !mod.isEmpty()) {
if (argument.getFunction(!argument.isInclude()).apply(mod)) {
- 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)) {
+ if (modName == null || modName.isEmpty() || argument.getFunction(!argument.isInclude()).apply(modName)) {
applicable = false;
break;
}
+ break;
}
}
} else if (argument.getArgumentType() == SearchArgument.ArgumentType.TEXT) {