aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me/shedaniel/rei/impl/common
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2023-05-30 04:28:31 +0800
committershedaniel <daniel@shedaniel.me>2023-05-30 04:28:31 +0800
commit981d975f0e1ddff61bfedd0d45ecbe0803372d8e (patch)
tree3eb69445b8ccaf76054b5d2e21358e585d005bb4 /runtime/src/main/java/me/shedaniel/rei/impl/common
parentd0f07b4adfbd6a8e7424b821cda0143eba401ae9 (diff)
parentaf164bc5db24d46f129ddfca6388e748267f6cce (diff)
downloadRoughlyEnoughItems-981d975f0e1ddff61bfedd0d45ecbe0803372d8e.tar.gz
RoughlyEnoughItems-981d975f0e1ddff61bfedd0d45ecbe0803372d8e.tar.bz2
RoughlyEnoughItems-981d975f0e1ddff61bfedd0d45ecbe0803372d8e.zip
Merge remote-tracking branch 'shedaniel/9.x-1.19' into 10.x-1.19.3
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/impl/common')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java1
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java
index 73f54172f..cf9c5b865 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/AbstractEntryStack.java
@@ -231,6 +231,7 @@ public abstract class AbstractEntryStack<A> implements EntryStack<A>, Renderer {
}
return tooltip.getValue();
} catch (Throwable throwable) {
+ if (context.isSearch()) throw throwable;
CrashReport report = CrashReportUtils.essential(throwable, "Getting tooltips");
CrashReportUtils.renderer(report, this);
throw CrashReportUtils.throwReport(report);
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
index a9d476878..942e61ad8 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java
@@ -120,6 +120,10 @@ public class EntryRegistryImpl implements EntryRegistry {
return Collections.unmodifiableList(filteredList.getComplexList());
}
+ public List<HashedEntryStackWrapper> getComplexList() {
+ return Collections.unmodifiableList(registryList.collectHashed());
+ }
+
@Override
public void refilter() {
List<HashedEntryStackWrapper> stacks = registryList.collectHashed();