mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
actually require mtlib in code too
This commit is contained in:
parent
dbeb2914f1
commit
1854b42709
1 changed files with 3 additions and 1 deletions
|
@ -8,17 +8,19 @@ public final class Compat {
|
||||||
|
|
||||||
public static boolean baubles;
|
public static boolean baubles;
|
||||||
public static boolean craftTweaker;
|
public static boolean craftTweaker;
|
||||||
|
public static boolean mtLib;
|
||||||
|
|
||||||
public static void preInit() {
|
public static void preInit() {
|
||||||
baubles = Loader.isModLoaded("baubles");
|
baubles = Loader.isModLoaded("baubles");
|
||||||
craftTweaker = Loader.isModLoaded("crafttweaker");
|
craftTweaker = Loader.isModLoaded("crafttweaker");
|
||||||
|
mtLib = Loader.isModLoaded("mtlib");
|
||||||
|
|
||||||
if (baubles)
|
if (baubles)
|
||||||
MinecraftForge.EVENT_BUS.register(new BaublesCompat());
|
MinecraftForge.EVENT_BUS.register(new BaublesCompat());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void postInit() {
|
public static void postInit() {
|
||||||
if (craftTweaker)
|
if (craftTweaker && mtLib)
|
||||||
CraftTweakerCompat.postInit();
|
CraftTweakerCompat.postInit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue