Minor fix

This commit is contained in:
aidancbrady committed 2016-08-07 21:14:01 -04:00
1 parent ac4148c01b
commit dd258521be
1 file changed
+5 -1
@@ -268,7 +268,11 @@ public class ItemBlockGasTank extends ItemBlock implements IGasItem, ISustainedI
Gas type = getGas(itemstack).getGas();
int gasToUse = Math.min(getStored(itemstack), Math.min(getRate(itemstack), amount));
setGas(itemstack, new GasStack(type, getStored(itemstack)-gasToUse));
if(getBaseTier(itemstack) != BaseTier.CREATIVE)
{
setGas(itemstack, new GasStack(type, getStored(itemstack)-gasToUse));
}
return new GasStack(type, gasToUse);
}