Skip to content

Commit 30c1b84

Browse files
committed
fix TEPs getting stuck paused when full tank is drained when temp lower than min production (caused by f5d7a1e)
1 parent 2f5f835 commit 30c1b84

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/main/java/mekanism/common/content/evaporation/EvaporationMultiblockData.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ public EvaporationMultiblockData(TileEntityThermalEvaporationBlock tile) {
116116
//Default biome temp to the ambient temperature at the block we are at
117117
biomeAmbientTemp = HeatAPI.getAmbientTemp(tile.getLevel(), tile.getBlockPos());
118118
fluidTanks.add(inputTank = VariableCapacityFluidTank.input(this, this::getMaxFluid, this::containsRecipe, createSaveAndComparator(recipeCacheLookupMonitor)));
119-
fluidTanks.add(outputTank = VariableCapacityFluidTank.output(this, MekanismConfig.general.evaporationOutputTankCapacity, BasicFluidTank.alwaysTrue, () -> {
120-
onContentsChanged();
121-
recipeCacheLookupMonitor.unpause();
122-
}));
119+
fluidTanks.add(outputTank = VariableCapacityFluidTank.output(this, MekanismConfig.general.evaporationOutputTankCapacity, BasicFluidTank.alwaysTrue, this));
123120
inputHandler = InputHelper.getInputHandler(inputTank, RecipeError.NOT_ENOUGH_INPUT);
124121
outputHandler = OutputHelper.getOutputHandler(outputTank, RecipeError.NOT_ENOUGH_OUTPUT_SPACE);
125122
inventorySlots.add(inputInputSlot = FluidInventorySlot.fill(inputTank, this, 28, 20));
@@ -140,6 +137,14 @@ public void onCreated(Level world) {
140137
updateSolars(world);
141138
}
142139

140+
@Override
141+
public void onContentsChanged() {
142+
super.onContentsChanged();
143+
if (getTemperature() > HeatAPI.AMBIENT_TEMP) {
144+
recipeCacheLookupMonitor.unpause();
145+
}
146+
}
147+
143148
@Override
144149
public boolean tick(Level world) {
145150
boolean needsPacket = super.tick(world);

0 commit comments

Comments
 (0)