mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-19 03:49:13 +00:00
Added configuration for new modules
This commit is contained in:
1 parent
614acf5114
commit
9f17d8ceff
4 files changed
+8
-3
No files matched your search
@@ -74,6 +74,7 @@ public class Config {
|
||||
public static int thaumcraftNodeMaxSize;
|
||||
|
||||
public static boolean arsMagicaActive;
|
||||
public static boolean baublesActive;
|
||||
public static boolean bloodMagicActive;
|
||||
public static boolean equivalentExchangeActive;
|
||||
public static boolean extraBeesActive;
|
||||
@@ -230,6 +231,9 @@ public class Config {
|
||||
p = configuration.get(CATEGORY_MODULES, "ArsMagica", true);
|
||||
arsMagicaActive = p.getBoolean();
|
||||
|
||||
p = configuration.get(CATEGORY_MODULES, "Baubles", true);
|
||||
baublesActive = p.getBoolean();
|
||||
|
||||
p = configuration.get(CATEGORY_MODULES, "BloodMagic", true);
|
||||
bloodMagicActive = p.getBoolean();
|
||||
|
||||
|
||||
@@ -11,5 +11,5 @@ public class VersionInfo {
|
||||
public static final String Version = "GRADLETOKEN_VERSION";
|
||||
public static final String GUI_FACTORY_CLASS = "magicbees.client.gui.GuiFactory";
|
||||
public static final String Logo = "/gfx/magicbees/logo.png";
|
||||
public static final String Depends = "required-after:Forestry@[4.2.5,);after:Thaumcraft;after:ExtraBees;after:EE3;after:ArsMagica;after:TConstruct;after:Railcraft;after:ThermalFoundation;after:ThermalExpansion;after:RedstoneArsenal;after:AWWayofTime;after:Botania;after:appliedenergistics2";
|
||||
public static final String Depends = "required-after:Forestry@[4.2.5,);after:Baubles;after:Thaumcraft;after:ExtraBees;after:EE3;after:ArsMagica;after:TConstruct;after:Railcraft;after:ThermalFoundation;after:ThermalExpansion;after:RedstoneArsenal;after:AWWayofTime;after:Botania;after:appliedenergistics2";
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import net.minecraft.item.Item;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import magicbees.main.Config;
|
||||
import magicbees.main.utils.compat.baubles.ItemBeeRing;
|
||||
|
||||
public class BaublesHelper implements IModHelper {
|
||||
@@ -19,7 +20,7 @@ public class BaublesHelper implements IModHelper {
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
if (Loader.isModLoaded(Name)) {
|
||||
if (Loader.isModLoaded(Name) && Config.baublesActive) {
|
||||
isModActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class BloodHelper implements IModHelper {
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
if (Loader.isModLoaded(Name)) {
|
||||
if (Loader.isModLoaded(Name) && Config.bloodMagicActive) {
|
||||
isBloodMagicActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user