mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Move smelting recipe additions to init. Fixes #5057
This commit is contained in:
1 parent
1d1d9c9573
commit
f2f08e2379
2 files changed
+6
-7
No files matched your search
@@ -793,6 +793,7 @@ public class Mekanism
|
||||
|
||||
//Load this module
|
||||
addRecipes();
|
||||
OreDictManager.init();
|
||||
addEntities();
|
||||
|
||||
//Integrate with Waila
|
||||
@@ -830,8 +831,6 @@ public class Mekanism
|
||||
{
|
||||
logger.info("Fake player readout: UUID = " + gameProfile.getId().toString() + ", name = " + gameProfile.getName());
|
||||
|
||||
OreDictManager.init();
|
||||
|
||||
// Add all furnace recipes to the energized smelter
|
||||
// Must happen after CraftTweaker for vanilla stuff has run.
|
||||
for(Map.Entry<ItemStack, ItemStack> entry : FurnaceRecipes.instance().getSmeltingList().entrySet())
|
||||
|
||||
@@ -104,6 +104,11 @@ public class MekanismGenerators implements IModule
|
||||
proxy.registerSpecialTileEntities();
|
||||
|
||||
addRecipes();
|
||||
|
||||
for(ItemStack ore : OreDictionary.getOres("dustGold"))
|
||||
{
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, MekanismUtils.size(ore, 4), GeneratorsItems.Hohlraum.getEmptyItem());
|
||||
}
|
||||
|
||||
//Finalization
|
||||
Mekanism.logger.info("Loaded MekanismGenerators module.");
|
||||
@@ -124,11 +129,6 @@ public class MekanismGenerators implements IModule
|
||||
|
||||
BuildcraftFuelRegistry.fuel.addFuel(MekanismFluids.Ethene.getFluid(), (long)(240 * general.TO_RF / 20 * MjAPI.MJ), 40 * Fluid.BUCKET_VOLUME);
|
||||
}
|
||||
|
||||
for(ItemStack ore : OreDictionary.getOres("dustGold"))
|
||||
{
|
||||
RecipeHandler.addMetallurgicInfuserRecipe(InfuseRegistry.get("CARBON"), 10, MekanismUtils.size(ore, 4), GeneratorsItems.Hohlraum.getEmptyItem());
|
||||
}
|
||||
}
|
||||
|
||||
public void addRecipes()
|
||||
|
||||
Reference in new issue
Block a user