mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Fix Chemical Dissolution Chamber progress reset
This commit is contained in:
1 parent
3bae3c9e55
commit
b8337f9bd1
1 file changed
+8
@@ -107,6 +107,8 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc
|
||||
outputTank.draw(GasTransmission.addGas(inventory[2], outputTank.getGas()), true);
|
||||
}
|
||||
|
||||
boolean changed = false;
|
||||
|
||||
if(canOperate() && getEnergy() >= ENERGY_USAGE && MekanismUtils.canFunction(this))
|
||||
{
|
||||
setActive(true);
|
||||
@@ -135,10 +137,16 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc
|
||||
else {
|
||||
if(prevEnergy >= getEnergy())
|
||||
{
|
||||
changed = true;
|
||||
setActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
if(changed && !canOperate())
|
||||
{
|
||||
operatingTicks = 0;
|
||||
}
|
||||
|
||||
prevEnergy = getEnergy();
|
||||
|
||||
if(outputTank.getGas() != null)
|
||||
|
||||
Reference in new issue
Block a user