mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Cleanup #74 and Osmium checks
Platinum oregas module (recipe + gas) only active when oredictPlatinum config is set to true. Mekanism Tool and armor recipes involving osmium will only register if osmium is present.
This commit is contained in:
1 parent
c275771e24
commit
c4043626ca
3 files changed
+44
-36
No files matched your search
@@ -1447,8 +1447,6 @@ public class Mekanism
|
||||
OreGas clean = (OreGas)GasRegistry.register(new OreGas("clean" + name, "oregas." + name.toLowerCase()).setVisible(false));
|
||||
GasRegistry.register(new OreGas(name.toLowerCase(), "oregas." + name.toLowerCase()).setCleanGas(clean).setVisible(false));
|
||||
}
|
||||
OreGas clean = (OreGas) GasRegistry.register(new OreGas("cleanPlatinum", "oregas.Platinum").setVisible(false));
|
||||
GasRegistry.register(new OreGas("platinum", "oregas." + "platinum").setCleanGas(clean).setVisible(false));
|
||||
|
||||
Mekanism.proxy.preInit();
|
||||
|
||||
@@ -1517,6 +1515,7 @@ public class Mekanism
|
||||
}
|
||||
}
|
||||
}
|
||||
//Silicon Module
|
||||
if (MekanismConfig.general.enableSiliconCompat)
|
||||
{
|
||||
if (Loader.isModLoaded("EnderIO") || Loader.isModLoaded("GalacticraftCore") || Loader.isModLoaded("ProjRed|Core")) {
|
||||
@@ -1526,6 +1525,14 @@ public class Mekanism
|
||||
//Integrate certain OreDictionary recipes
|
||||
registerOreDict();
|
||||
|
||||
//Platinum Oredict Module
|
||||
if (general.OreDictPlatinum)
|
||||
{
|
||||
OreGas clean = (OreGas) GasRegistry.register(new OreGas("cleanPlatinum", "oregas.Platinum").setVisible(false));
|
||||
GasRegistry.register(new OreGas("platinum", "oregas." + "platinum").setCleanGas(clean).setVisible(false));
|
||||
RecipeHandler.addChemicalCrystallizerRecipe(new GasStack(clean, 200), new ItemStack(MekanismItems.Crystal, 1, 2));
|
||||
}
|
||||
|
||||
//Load this module
|
||||
addRecipes();
|
||||
addEntities();
|
||||
|
||||
Reference in new issue
Block a user