Fixed inject usage of Chemical Dissolution Chamber

This commit is contained in:
aidancbrady 2015-05-28 16:48:58 -04:00
parent c2f7735115
commit 6b765d27e7

View file

@ -124,7 +124,7 @@ public class TileEntityChemicalDissolutionChamber extends TileEntityNoisyElectri
DissolutionRecipe recipe = getRecipe(); DissolutionRecipe recipe = getRecipe();
injectUsageThisTick = StatUtils.inversePoisson(injectUsage); injectUsageThisTick = Math.max(1, StatUtils.inversePoisson(injectUsage));
if(canOperate(recipe) && getEnergy() >= energyUsage && injectTank.getStored() >= injectUsageThisTick && MekanismUtils.canFunction(this)) if(canOperate(recipe) && getEnergy() >= energyUsage && injectTank.getStored() >= injectUsageThisTick && MekanismUtils.canFunction(this))
{ {