Fix Chemical Crystalizer auto-output, got that dissolution chamber to actually use sulfuric acid

This commit is contained in:
Aidan Brady committed 2014-03-01 17:43:44 -05:00
1 parent 4d949f3985
commit e5b17b212d
2 files changed
+4 -2

No files matched your search

@@ -200,6 +200,7 @@ public class TileEntityChemicalCrystalizer extends TileEntityElectricBlock imple
}
onInventoryChanged();
ejectorComponent.onOutput();
}
@Override
@@ -109,7 +109,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc
boolean changed = false;
if(canOperate() && getEnergy() >= ENERGY_USAGE && MekanismUtils.canFunction(this))
if(canOperate() && getEnergy() >= ENERGY_USAGE && injectTank.getStored() >= INJECT_USAGE && MekanismUtils.canFunction(this))
{
setActive(true);
setEnergy(getEnergy() - ENERGY_USAGE);
@@ -117,6 +117,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc
if(operatingTicks < TICKS_REQUIRED)
{
operatingTicks++;
injectTank.draw(INJECT_USAGE, true);
}
else {
GasStack stack = RecipeHandler.getItemToGasOutput(inventory[1], true, Recipe.CHEMICAL_DISSOLUTION_CHAMBER.get());
@@ -219,7 +220,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityElectricBloc
public boolean canOperate()
{
if(injectTank.getStored() < INJECT_USAGE || inventory[1] == null)
if(inventory[1] == null)
{
return false;
}