2018-10-19 14:35:25 +02:00
|
|
|
package de.ellpeck.naturesaura.compat;
|
|
|
|
|
2019-01-26 00:34:05 +01:00
|
|
|
import de.ellpeck.naturesaura.ModConfig;
|
|
|
|
import de.ellpeck.naturesaura.NaturesAura;
|
2018-11-11 16:50:51 +01:00
|
|
|
import de.ellpeck.naturesaura.compat.crafttweaker.CraftTweakerCompat;
|
2018-10-19 14:35:25 +02:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
|
|
|
import net.minecraftforge.fml.common.Loader;
|
2019-01-26 00:34:05 +01:00
|
|
|
import vazkii.patchouli.api.PatchouliAPI;
|
2018-10-19 14:35:25 +02:00
|
|
|
|
|
|
|
public final class Compat {
|
|
|
|
|
|
|
|
public static boolean baubles;
|
2018-11-11 16:50:51 +01:00
|
|
|
public static boolean craftTweaker;
|
2018-11-11 17:00:47 +01:00
|
|
|
public static boolean mtLib;
|
2018-10-19 14:35:25 +02:00
|
|
|
|
2018-11-11 16:50:51 +01:00
|
|
|
public static void preInit() {
|
2018-10-19 14:35:25 +02:00
|
|
|
baubles = Loader.isModLoaded("baubles");
|
2018-11-11 16:50:51 +01:00
|
|
|
craftTweaker = Loader.isModLoaded("crafttweaker");
|
2018-11-11 17:00:47 +01:00
|
|
|
mtLib = Loader.isModLoaded("mtlib");
|
2018-11-11 16:50:51 +01:00
|
|
|
|
|
|
|
if (baubles)
|
2018-10-19 14:35:25 +02:00
|
|
|
MinecraftForge.EVENT_BUS.register(new BaublesCompat());
|
2019-01-26 00:34:05 +01:00
|
|
|
|
|
|
|
PatchouliAPI.instance.setConfigFlag(NaturesAura.MOD_ID + ":rf_converter", ModConfig.enabledFeatures.rfConverter);
|
2018-11-11 16:50:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void postInit() {
|
2018-11-11 17:00:47 +01:00
|
|
|
if (craftTweaker && mtLib)
|
2018-11-11 16:50:51 +01:00
|
|
|
CraftTweakerCompat.postInit();
|
2018-10-26 12:03:42 +02:00
|
|
|
}
|
2018-10-19 14:35:25 +02:00
|
|
|
}
|