mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 17:33:12 +01:00
26 lines
750 B
Java
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();
|
|
}
|
|
}
|