actually require mtlib in code too

This commit is contained in:
Ellpeck 2018-11-11 17:00:47 +01:00
parent dbeb2914f1
commit 1854b42709

View file

@ -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();
} }
} }