Require a Hohlraum filled up to the max with D-T fuel in order to trigger a reaction

This commit is contained in:
Aidan C. Brady 2015-03-21 12:44:37 -05:00
parent 46eb5aa288
commit 84a1fa95ae

View file

@ -97,7 +97,7 @@ public class FusionReactor implements IFusionReactor
if(hohlraum != null && hohlraum.getItem() instanceof ItemHohlraum)
{
GasStack gasStack = ((ItemHohlraum)hohlraum.getItem()).getGas(hohlraum);
return gasStack != null && gasStack.getGas() == GasRegistry.getGas("fusionFuelDT") && gasStack.amount > 0;
return gasStack != null && gasStack.getGas() == GasRegistry.getGas("fusionFuelDT") && gasStack.amount == ItemHohlraum.MAX_GAS;
}
}