Skip to content

Commit

Permalink
Fix Missing ABS Recipes for Alloys Without Molten Fluids
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Feb 19, 2024
1 parent 267b5bc commit 4d549f2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package gregicality.multiblocks.api.fluids;

import net.minecraftforge.fluids.Fluid;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -50,7 +52,11 @@ public static void createMoltenFluid(@NotNull Material material) {
.temperature(alloyBlastProperty.getTemperature()));
} else {
// not hot enough to produce molten fluid, so produce regular fluid
fluidProperty.getStorage().store(GCYMFluidStorageKeys.MOLTEN, material.getFluid(FluidStorageKeys.LIQUID));
FluidBuilder liquidBuilder = fluidProperty.getStorage().getQueuedBuilder(FluidStorageKeys.LIQUID);
if (liquidBuilder == null) return;

Fluid fluid = liquidBuilder.build(material.getModid(), material, FluidStorageKeys.LIQUID);
fluidProperty.getStorage().store(GCYMFluidStorageKeys.MOLTEN, fluid);
}
}
}

0 comments on commit 4d549f2

Please sign in to comment.