aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-01-11 01:21:55 +0800
committershedaniel <daniel@shedaniel.me>2020-01-11 01:21:55 +0800
commit421d0b0abd703367d6078f344def91ddfa24bdec (patch)
treeaf9b446c7c9ed323ce83603794410b2cd84dbd05 /src
parent8a136401cedbda8ecf65264741960259c7958eb9 (diff)
downloadRoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.tar.gz
RoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.tar.bz2
RoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.zip
fix search
Diffstat (limited to 'src')
-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) {