mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-21 12:32:12 +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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -333,7 +333,7 @@ console.EMT.init.end=Allies gathered.
|
||||
|
||||
console.EMT.postInit.begin=Starting the world takeover
|
||||
console.EMT.postInit.recipes=Adding PostInit recipes
|
||||
console.EMT.postInit.uumatter=Adding the UU-Matter Infusion recipes
|
||||
console.EMT.postInit.recipes.uumatter=Adding the UU-Matter Infusion recipes
|
||||
console.EMT.postInit.end=World takeover complete. Enjoy!
|
||||
|
||||
console.EMT.config.refresh=Refreshing configuration file.
|
||||
|
||||
@@ -333,7 +333,7 @@ console.EMT.init.end=盟军已汇聚一堂
|
||||
|
||||
console.EMT.postInit.begin=即将占领世界
|
||||
console.EMT.postInit.recipes=增加合成配方
|
||||
console.EMT.postInit.uumatter=增加UU注魔配方
|
||||
console.EMT.postInit.recipes.uumatter=增加UU注魔配方
|
||||
console.EMT.postInit.end=世界已被我们占领. 敬请享受!
|
||||
|
||||
console.EMT.config.refresh=正在刷新配置文件
|
||||
|
||||
Reference in new issue
Block a user