mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-21 04:32:29 +00:00
1 parent
ac56547c63
commit
5b21405d68
3 files changed
+13
-5
No files matched your search
@@ -38,6 +38,8 @@ public class Config {
|
||||
public static boolean witch = true;
|
||||
public static boolean rotisserie = true;
|
||||
|
||||
public static boolean alfheim = false;
|
||||
|
||||
public static boolean copper = true;
|
||||
public static boolean tin = true;
|
||||
public static boolean silver = true;
|
||||
@@ -86,6 +88,8 @@ public class Config {
|
||||
witch = conf.get("compatibility", "Witchery", true).getBoolean(true);
|
||||
rotisserie = conf.get("compatibility", "Rotarycraft", true).getBoolean(true);
|
||||
|
||||
alfheim = conf.get("compatibility", "Alfheim", false).getBoolean(false);
|
||||
|
||||
conf.addCustomCategoryComment("materials", "Disable to stop using that material in recipes. Useful if a mod adds unobtainable placeholder ores.");
|
||||
copper = conf.get("materials", "Copper", true).getBoolean(true);
|
||||
tin = conf.get("materials", "Tin", true).getBoolean(true);
|
||||
|
||||
@@ -2,6 +2,7 @@ package fox.spiteful.avaritia.compat.botania;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import fox.spiteful.avaritia.Config;
|
||||
import fox.spiteful.avaritia.blocks.LudicrousBlocks;
|
||||
import fox.spiteful.avaritia.compat.Compat;
|
||||
import fox.spiteful.avaritia.compat.botania.alfheim.Alfheim;
|
||||
@@ -35,7 +36,8 @@ public class Tsundere {
|
||||
Grinder.catalyst.getInput().add(terra);
|
||||
Grinder.catalyst.getInput().add(gaia);
|
||||
|
||||
Alfheim.vacationTime();
|
||||
if(Config.alfheim)
|
||||
Alfheim.vacationTime();
|
||||
|
||||
BotaniaAPI.registerSubTile("asgardandelion", SubTileCheaty.class);
|
||||
BotaniaAPI.registerSubTileSignature(SubTileCheaty.class, new Signature("asgardandelion"));
|
||||
|
||||
@@ -8,10 +8,12 @@ import cpw.mods.fml.common.FMLCommonHandler;
|
||||
public class Alfheim {
|
||||
public static void vacationTime() {
|
||||
AlfheimBlocks.alfheimify();
|
||||
|
||||
AlfheimEvents alfevents = new AlfheimEvents();
|
||||
FMLCommonHandler.instance().bus().register(alfevents);
|
||||
MinecraftForge.EVENT_BUS.register(alfevents);
|
||||
|
||||
if(FMLCommonHandler.instance().getSide().isClient()) {
|
||||
AlfheimEvents alfevents = new AlfheimEvents();
|
||||
FMLCommonHandler.instance().bus().register(alfevents);
|
||||
MinecraftForge.EVENT_BUS.register(alfevents);
|
||||
}
|
||||
}
|
||||
|
||||
// this stuff needs to happen whether or not botania is active it seems D:
|
||||
|
||||
Reference in new issue
Block a user