mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Minor fix
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user