From 1854b4270917013145dd5ca0ae17cfcb16033360 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 11 Nov 2018 17:00:47 +0100 Subject: [PATCH] actually require mtlib in code too --- src/main/java/de/ellpeck/naturesaura/compat/Compat.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/compat/Compat.java b/src/main/java/de/ellpeck/naturesaura/compat/Compat.java index 0f130d74..6ed546a4 100644 --- a/src/main/java/de/ellpeck/naturesaura/compat/Compat.java +++ b/src/main/java/de/ellpeck/naturesaura/compat/Compat.java @@ -8,17 +8,19 @@ public final class Compat { public static boolean baubles; public static boolean craftTweaker; + public static boolean mtLib; public static void preInit() { baubles = Loader.isModLoaded("baubles"); craftTweaker = Loader.isModLoaded("crafttweaker"); + mtLib = Loader.isModLoaded("mtlib"); if (baubles) MinecraftForge.EVENT_BUS.register(new BaublesCompat()); } public static void postInit() { - if (craftTweaker) + if (craftTweaker && mtLib) CraftTweakerCompat.postInit(); } }