NaturesAura/src/main/java/de/ellpeck/naturesaura/compat/Compat.java
2018-11-11 17:00:47 +01:00

26 lines
750 B
Java

package de.ellpeck.naturesaura.compat;
import de.ellpeck.naturesaura.compat.crafttweaker.CraftTweakerCompat;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Loader;
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 && mtLib)
CraftTweakerCompat.postInit();
}
}