aboutsummaryrefslogtreecommitdiff
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
parent8a136401cedbda8ecf65264741960259c7958eb9 (diff)
downloadRoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.tar.gz
RoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.tar.bz2
RoughlyEnoughItems-421d0b0abd703367d6078f344def91ddfa24bdec.zip
fix search
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/EntryListWidget.java6
2 files changed, 3 insertions, 5 deletions
diff --git a/gradle.properties b/gradle.properties
index 85db4cfa8..a8d513021 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
-mod_version=3.3.7
+mod_version=3.3.8
minecraft_version=1.15.1
yarn_version=1.15.1+build.1
fabricloader_version=0.7.2+build.174
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) {