fix render crash due to overflow #117

this stops infinite water bucket overflowing thermal evaporation controller
also stops overflowing on fluidic plenisher
unknown if other machines are affected
This commit is contained in:
maggi373 committed 2023-05-25 21:24:03 +02:00
1 parent 1f57c60893
commit db80669227
2 files changed
+4 -3

No files matched your search

@@ -84,7 +84,7 @@ public class TileEntityFluidicPlenisher extends TileEntityElectricBlock implemen
{
ChargeUtils.discharge(2, this);
if(inventory[0] != null)
if(inventory[0] != null && fluidTank.getFluidAmount() <= (fluidTank.getCapacity() - 1000))
{
if(inventory[0].getItem() instanceof IFluidContainerItem)
{
@@ -102,8 +102,9 @@ public class TileEntityThermalEvaporationController extends TileEntityThermalEva
{
updateTemperature();
}
manageBuckets();
if (inputTank.getFluidAmount() <= (inputTank.getCapacity() - 1001)) {
manageBuckets();
}
ThermalEvaporationRecipe recipe = getRecipe();