diff --git a/src/main/java/mekanism/api/MekanismConfig.java b/src/main/java/mekanism/api/MekanismConfig.java index ae49eb2b8..2f9ea6875 100644 --- a/src/main/java/mekanism/api/MekanismConfig.java +++ b/src/main/java/mekanism/api/MekanismConfig.java @@ -53,6 +53,9 @@ public class MekanismConfig public static boolean aestheticWorldDamage; public static boolean opsBypassRestrictions; public static double solarEvaporationSpeed; + public static int maxJetpackGas; + public static int maxScubaGas; + public static int maxFlamethrowerGas; } public static class client diff --git a/src/main/java/mekanism/common/CommonProxy.java b/src/main/java/mekanism/common/CommonProxy.java index f03823b03..cf63ef433 100644 --- a/src/main/java/mekanism/common/CommonProxy.java +++ b/src/main/java/mekanism/common/CommonProxy.java @@ -260,6 +260,9 @@ public class CommonProxy general.aestheticWorldDamage = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "AestheticWorldDamage", true).getBoolean(); general.opsBypassRestrictions = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "OpsBypassRestrictions", true).getBoolean(); general.solarEvaporationSpeed = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "SolarEvaporationSpeed", 1.0D).getDouble(); + general.maxJetpackGas = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxJetpackGas", 24000).getInt(); + general.maxScubaGas = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxScubaGas", 24000).getInt(); + general.maxFlamethrowerGas = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "MaxFlamethrowerGas", 24000).getInt(); general.blacklistIC2 = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistIC2Power", false).getBoolean(); general.blacklistRF = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "BlacklistRFPower", false).getBoolean(); diff --git a/src/main/java/mekanism/common/item/ItemFlamethrower.java b/src/main/java/mekanism/common/item/ItemFlamethrower.java index b39af518b..d4afc03ac 100644 --- a/src/main/java/mekanism/common/item/ItemFlamethrower.java +++ b/src/main/java/mekanism/common/item/ItemFlamethrower.java @@ -2,6 +2,7 @@ package mekanism.common.item; import java.util.List; +import mekanism.api.MekanismConfig.general; import mekanism.api.gas.Gas; import mekanism.api.gas.GasRegistry; import mekanism.api.gas.GasStack; @@ -18,7 +19,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class ItemFlamethrower extends ItemMekanism implements IGasItem { - public int MAX_GAS = 24000; public int TRANSFER_RATE = 16; public ItemFlamethrower() @@ -55,7 +55,7 @@ public class ItemFlamethrower extends ItemMekanism implements IGasItem @Override public int getMaxGas(ItemStack itemstack) { - return MAX_GAS; + return general.maxFlamethrowerGas; } @Override diff --git a/src/main/java/mekanism/common/item/ItemJetpack.java b/src/main/java/mekanism/common/item/ItemJetpack.java index 3d57cd270..b2dcab535 100644 --- a/src/main/java/mekanism/common/item/ItemJetpack.java +++ b/src/main/java/mekanism/common/item/ItemJetpack.java @@ -31,7 +31,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class ItemJetpack extends ItemArmor implements IGasItem, ISpecialArmor { - public int MAX_GAS = 24000; public int TRANSFER_RATE = 16; public ItemJetpack() @@ -105,7 +104,7 @@ public class ItemJetpack extends ItemArmor implements IGasItem, ISpecialArmor @Override public int getMaxGas(ItemStack itemstack) { - return MAX_GAS; + return general.maxJetpackGas; } @Override diff --git a/src/main/java/mekanism/common/item/ItemScubaTank.java b/src/main/java/mekanism/common/item/ItemScubaTank.java index 6a4b68208..153d4c4e7 100644 --- a/src/main/java/mekanism/common/item/ItemScubaTank.java +++ b/src/main/java/mekanism/common/item/ItemScubaTank.java @@ -3,6 +3,7 @@ package mekanism.common.item; import java.util.List; import mekanism.api.EnumColor; +import mekanism.api.MekanismConfig.general; import mekanism.api.gas.Gas; import mekanism.api.gas.GasRegistry; import mekanism.api.gas.GasStack; @@ -27,7 +28,6 @@ import cpw.mods.fml.relauncher.SideOnly; public class ItemScubaTank extends ItemArmor implements IGasItem { - public int MAX_GAS = 24000; public int TRANSFER_RATE = 16; public ItemScubaTank() @@ -98,7 +98,7 @@ public class ItemScubaTank extends ItemArmor implements IGasItem @Override public int getMaxGas(ItemStack itemstack) { - return MAX_GAS; + return general.maxScubaGas; } @Override diff --git a/src/main/java/mekanism/common/network/PacketConfigSync.java b/src/main/java/mekanism/common/network/PacketConfigSync.java index fbd347873..0fe54b856 100644 --- a/src/main/java/mekanism/common/network/PacketConfigSync.java +++ b/src/main/java/mekanism/common/network/PacketConfigSync.java @@ -59,6 +59,9 @@ public class PacketConfigSync implements IMessageHandler