mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-13 17:04:02 +00:00
Register late recipes behind config options
This commit is contained in:
1 parent
52c49fdbee
commit
fe69d3b2dc
4 files changed
+18
-8
No files matched your search
@@ -29,7 +29,6 @@ import org.apache.logging.log4j.Logger;
|
||||
import tombenpotter.emt.common.commands.CommandOutputs;
|
||||
import tombenpotter.emt.common.modules.ModuleRegistry;
|
||||
import tombenpotter.emt.common.modules.base.entities.BaseEntityRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.IC2RecipeRegistry;
|
||||
import tombenpotter.emt.common.util.*;
|
||||
import tombenpotter.emt.proxies.CommonProxy;
|
||||
|
||||
@@ -84,10 +83,7 @@ public class ElectroMagicTools {
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.begin"));
|
||||
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes"));
|
||||
IC2RecipeRegistry.registerLateRecipes();
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.uumatter"));
|
||||
IC2RecipeRegistry.registerUUMInfusionRecipes();
|
||||
ModuleRegistry.registerLateModules();
|
||||
RegistryHandler.registerIc2PostRegistrys();
|
||||
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.end"));
|
||||
|
||||
@@ -25,7 +25,7 @@ public class ModuleRegistry {
|
||||
if (ConfigHandler.enableIC2Module) {
|
||||
IC2BlockRegistry.registerBlocks();
|
||||
IC2ItemRegistry.registerItems();
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.init.recipes.ic2"));
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.init.recipes"));
|
||||
IC2RecipeRegistry.registerEarlyRecipes();
|
||||
}
|
||||
|
||||
@@ -35,4 +35,18 @@ public class ModuleRegistry {
|
||||
TERecipeRegistry.registerTERecipes();
|
||||
}
|
||||
}
|
||||
|
||||
public static void registerLateModules() {
|
||||
|
||||
if (ConfigHandler.enableIC2Module) {
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes"));
|
||||
IC2RecipeRegistry.registerLateRecipes();
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes.uumatter"));
|
||||
IC2RecipeRegistry.registerUUMInfusionRecipes();
|
||||
}
|
||||
|
||||
if (ConfigHandler.enableTEModule) {
|
||||
// do stuff
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user