aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-10-15 02:43:07 +0800
committershedaniel <daniel@shedaniel.me>2021-10-16 00:50:06 +0800
commita7b0a0dd4b305eb8655b008ebcfdcd2f7b70079a (patch)
tree8f35ef541a5bace21530db7e9ffeed9d1060facf
parentc65b2a347b38724ccb777114f5353e7f18b978b5 (diff)
downloadRoughlyEnoughItems-a7b0a0dd4b305eb8655b008ebcfdcd2f7b70079a.tar.gz
RoughlyEnoughItems-a7b0a0dd4b305eb8655b008ebcfdcd2f7b70079a.tar.bz2
RoughlyEnoughItems-a7b0a0dd4b305eb8655b008ebcfdcd2f7b70079a.zip
Fix merge conflicts
-rw-r--r--fabric/src/main/java/me/shedaniel/rei/impl/common/compat/FabricFluidAPISupportPlugin.java3
-rw-r--r--forge/build.gradle4
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/util/CrashReportUtils.java4
3 files changed, 7 insertions, 4 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/impl/common/compat/FabricFluidAPISupportPlugin.java b/fabric/src/main/java/me/shedaniel/rei/impl/common/compat/FabricFluidAPISupportPlugin.java
index 651ff2821..01b5f2a47 100644
--- a/fabric/src/main/java/me/shedaniel/rei/impl/common/compat/FabricFluidAPISupportPlugin.java
+++ b/fabric/src/main/java/me/shedaniel/rei/impl/common/compat/FabricFluidAPISupportPlugin.java
@@ -30,6 +30,7 @@ import me.shedaniel.rei.api.common.fluid.FluidSupportProvider;
import me.shedaniel.rei.api.common.plugins.REIServerPlugin;
import me.shedaniel.rei.api.common.util.EntryStacks;
import net.fabricmc.fabric.api.transfer.v1.context.ContainerItemContext;
+import net.fabricmc.fabric.api.transfer.v1.fluid.FluidConstants;
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidStorage;
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant;
import net.fabricmc.fabric.api.transfer.v1.storage.Storage;
@@ -50,7 +51,7 @@ public class FabricFluidAPISupportPlugin implements REIServerPlugin {
try (Transaction transaction = Transaction.openOuter()) {
result = StreamSupport.stream(storage.iterable(transaction).spliterator(), false)
.filter(view -> !view.isResourceBlank() && !view.getResource().isBlank())
- .map(view -> EntryStacks.of(FluidStack.create(view.getResource().getFluid(), view.getAmount(), view.getResource().getNbt())))
+ .map(view -> EntryStacks.of(FluidStack.create(view.getResource().getFluid(), Fraction.of(view.getAmount(), FluidConstants.BUCKET), view.getResource().getNbt())))
.collect(Collectors.toList());
}
if (!result.isEmpty()) {
diff --git a/forge/build.gradle b/forge/build.gradle
index 94be9b025..1accad167 100644
--- a/forge/build.gradle
+++ b/forge/build.gradle
@@ -57,7 +57,7 @@ dependencies {
common(project(path: ":jei-compatibility-layer", configuration: "dev")) { transitive false }
shadowCommon(project(path: ":jei-compatibility-layer", configuration: "dev")) { transitive false }
- // common(project(path: ":jei-internals-workaround")) { transitive = false }
+ // runtimeClasspath(project(path: ":jei-internals-workaround", configuration: "dev")) { transitive = false }
depProjects.forEach {
common(project(path: it, configuration: "dev")) { transitive false }
@@ -82,6 +82,8 @@ dependencies {
// modRuntime("curse.maven:jep-417645:3198370")
// modRuntime("curse.maven:simple-storage-network-268495:3257204")
// modRuntime("curse.maven:create-328085:3278516")
+ modRuntime("curse.maven:industrial-foregoing-266515:3446262")
+ modRuntime("curse.maven:titanium-287342:3346366")
}
shadowJar {
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);