From e3c96c2d107eefe115f1ec8b63d30d33efc0cee5 Mon Sep 17 00:00:00 2001 From: ganymedes01 Date: Sat, 30 Jan 2016 21:31:52 -0200 Subject: [PATCH] Fix Mariculture support --- build.gradle | 2 +- src/main/java/ganymedes01/aobd/lib/Reference.java | 2 +- .../ganymedes01/aobd/recipes/modules/Mariculture.java | 10 ++++++++++ src/main/resources/mcmod.info | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index e4f7eb7..afc1dc4 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "2.9.0" +version = "2.9.1" group = "ganymedes01.aobd" archivesBaseName = "AOBD" diff --git a/src/main/java/ganymedes01/aobd/lib/Reference.java b/src/main/java/ganymedes01/aobd/lib/Reference.java index b73f948..b4cb4ee 100644 --- a/src/main/java/ganymedes01/aobd/lib/Reference.java +++ b/src/main/java/ganymedes01/aobd/lib/Reference.java @@ -5,7 +5,7 @@ public class Reference { public static final String MOD_ID = "aobd"; public static final String MOD_NAME = "Another One Bites The Dust"; public static final String DEPENDENCIES = "required-after:Forge@[10.13.4.1558,);after:*"; - public static final String VERSION_NUMBER = "2.9.0"; + public static final String VERSION_NUMBER = "2.9.1"; public static final String GUI_FACTORY_CLASS = "ganymedes01.aobd.configuration.ConfigGuiFactory"; } \ No newline at end of file diff --git a/src/main/java/ganymedes01/aobd/recipes/modules/Mariculture.java b/src/main/java/ganymedes01/aobd/recipes/modules/Mariculture.java index b76f13d..099afbd 100644 --- a/src/main/java/ganymedes01/aobd/recipes/modules/Mariculture.java +++ b/src/main/java/ganymedes01/aobd/recipes/modules/Mariculture.java @@ -20,6 +20,16 @@ public Mariculture() { @Override public void initOre(Ore ore) { + } + + @Override + protected void postInit() { + for (Ore ore : Ore.ores) + if (isOreEnabled(ore)) + addRecipesFor(ore); + } + + private void addRecipesFor(Ore ore) { Fluid fluid = getFluid(ore); MaricultureHandlers.crucible.addRecipe(new RecipeSmelter(getOreStack("ingot", ore), 500 + (int) ore.energy(600), new FluidStack(fluid, MetalRates.INGOT), null, 0)); diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 95ab95b..5104983 100755 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,7 +3,7 @@ "modid": "aobd", "name": "Another One Bites The Dust", "description": "AOBD dynamically finds all the ores and ingots added by any mod and makes them processable in IC2, EnderIO, RailCraft, Mekanism, Thermal Expansion, Thaumcraft, UltraTech, Factorization, RandomAdditions, Gany's Nether, Modular Systems, Hydraulicraft, Tinker's Construct, SimpleOreGrinder, RotaryCraft, Electrical Age, Aura Cascade, Flaxbeard's Steampower Mod, Engineer's Toolbox, and Immersive Engineering machines!", - "version": "2.9.0", + "version": "2.9.1", "mcversion":"1.7.10", "url": "", "updateUrl": "",