Skip to content

Commit

Permalink
Add null check for current recipe on t5 water failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Brady committed Jan 18, 2025
1 parent 0e0d477 commit 6722006
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ private long drainFluidLimited(MTEHatchInput inputHatch, FluidStack fluid, long
public void addRecipeOutputs() {
super.addRecipeOutputs();
// If the cycle was ruined, output steam
if (this.ruinedCycle) {
// currentRecipe is null when multi is unloaded and reloaded
if (this.ruinedCycle && currentRecipe != null) {
FluidStack insertedWater = currentRecipe.mFluidInputs[0];
// Multiply by 60 since that's the water:steam ratio in GTNH
long steamAmount = insertedWater.amount * 60L;
Expand Down

0 comments on commit 6722006

Please sign in to comment.