aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java
index ac7cc3777..d3159a9ca 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java
@@ -35,8 +35,8 @@ public class CrashReportUtils {
Throwable temp = throwable;
while (temp != null) {
temp = temp.getCause();
- if (temp instanceof ReportedException reportedException) {
- return essential(reportedException, task);
+ if (temp instanceof ReportedException) {
+ return essential(temp, task);
}
}
CrashReport report = CrashReport.forThrowable(throwable, task);