Add config option to override UE ratios
This commit is contained in:
parent
4a499d6dac
commit
1e51ddfa9a
2 changed files with 13 additions and 0 deletions
|
@ -166,6 +166,7 @@ public class CommonProxy
|
||||||
Mekanism.dynamicTankEasterEgg = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false).getBoolean(true);
|
Mekanism.dynamicTankEasterEgg = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false).getBoolean(true);
|
||||||
Mekanism.voiceServerEnabled = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "VoiceServerEnabled", true).getBoolean(true);
|
Mekanism.voiceServerEnabled = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "VoiceServerEnabled", true).getBoolean(true);
|
||||||
Mekanism.forceBuildcraft = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ForceBuildcraftPower", false).getBoolean(false);
|
Mekanism.forceBuildcraft = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ForceBuildcraftPower", false).getBoolean(false);
|
||||||
|
Mekanism.overrideUERatios = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "OverrideUERatios", true).getBoolean(true);
|
||||||
Mekanism.obsidianTNTDelay = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTDelay", 100).getInt();
|
Mekanism.obsidianTNTDelay = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTDelay", 100).getInt();
|
||||||
Mekanism.obsidianTNTBlastRadius = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTBlastRadius", 12).getInt();
|
Mekanism.obsidianTNTBlastRadius = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ObsidianTNTBlastRadius", 12).getInt();
|
||||||
Mekanism.UPDATE_DELAY = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ClientUpdateDelay", 10).getInt();
|
Mekanism.UPDATE_DELAY = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ClientUpdateDelay", 10).getInt();
|
||||||
|
|
|
@ -103,6 +103,7 @@ import net.minecraftforge.oredict.OreDictionary;
|
||||||
import rebelkeithy.mods.metallurgy.api.IOreInfo;
|
import rebelkeithy.mods.metallurgy.api.IOreInfo;
|
||||||
import rebelkeithy.mods.metallurgy.api.MetallurgyAPI;
|
import rebelkeithy.mods.metallurgy.api.MetallurgyAPI;
|
||||||
import thermalexpansion.api.crafting.CraftingManagers;
|
import thermalexpansion.api.crafting.CraftingManagers;
|
||||||
|
import universalelectricity.compatibility.Compatibility;
|
||||||
import cpw.mods.fml.common.FMLLog;
|
import cpw.mods.fml.common.FMLLog;
|
||||||
import cpw.mods.fml.common.Mod;
|
import cpw.mods.fml.common.Mod;
|
||||||
import cpw.mods.fml.common.Mod.EventHandler;
|
import cpw.mods.fml.common.Mod.EventHandler;
|
||||||
|
@ -233,6 +234,7 @@ public class Mekanism
|
||||||
public static boolean dynamicTankEasterEgg = false;
|
public static boolean dynamicTankEasterEgg = false;
|
||||||
public static boolean voiceServerEnabled = true;
|
public static boolean voiceServerEnabled = true;
|
||||||
public static boolean forceBuildcraft = false;
|
public static boolean forceBuildcraft = false;
|
||||||
|
public static boolean overrideUERatios = true;
|
||||||
public static int obsidianTNTBlastRadius = 12;
|
public static int obsidianTNTBlastRadius = 12;
|
||||||
public static int obsidianTNTDelay = 100;
|
public static int obsidianTNTDelay = 100;
|
||||||
public static int UPDATE_DELAY = 10;
|
public static int UPDATE_DELAY = 10;
|
||||||
|
@ -1182,6 +1184,16 @@ public class Mekanism
|
||||||
|
|
||||||
addIntegratedItems();
|
addIntegratedItems();
|
||||||
|
|
||||||
|
if(overrideUERatios)
|
||||||
|
{
|
||||||
|
Compatibility.BC3_RATIO = (float)FROM_BC;
|
||||||
|
Compatibility.TO_BC_RATIO = (float)TO_BC;
|
||||||
|
Compatibility.IC2_RATIO = (float)FROM_IC2;
|
||||||
|
Compatibility.TO_IC2_RATIO = (float)TO_IC2;
|
||||||
|
Compatibility.TE_RATIO = (float)FROM_TE;
|
||||||
|
Compatibility.TO_TE_RATIO = (float)TO_TE;
|
||||||
|
}
|
||||||
|
|
||||||
System.out.println("[Mekanism] Hooking complete.");
|
System.out.println("[Mekanism] Hooking complete.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue