From d5461807e9657e526f3d80087a5aff6927050f5b Mon Sep 17 00:00:00 2001 From: hilburn Date: Wed, 22 Oct 2014 18:46:10 +0100 Subject: [PATCH] fixed derp and update javadoc --- src/main/java/minechem/item/element/ElementEnum.java | 2 +- src/main/java/minechem/minetweaker/Decomposer.java | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/minechem/item/element/ElementEnum.java b/src/main/java/minechem/item/element/ElementEnum.java index bed96a154..2db2631b5 100644 --- a/src/main/java/minechem/item/element/ElementEnum.java +++ b/src/main/java/minechem/item/element/ElementEnum.java @@ -195,7 +195,7 @@ public static void registerElement(ElementEnum element) { throw new IllegalArgumentException("id " + element.id + " is used"); } - if (element.id>heaviestMass)heaviestMass=element.id+1; + if (element.id>=heaviestMass)heaviestMass=element.id+1; elements.put(element.id, element); } diff --git a/src/main/java/minechem/minetweaker/Decomposer.java b/src/main/java/minechem/minetweaker/Decomposer.java index aef8461f6..12379a3cd 100644 --- a/src/main/java/minechem/minetweaker/Decomposer.java +++ b/src/main/java/minechem/minetweaker/Decomposer.java @@ -30,8 +30,9 @@ public class Decomposer { /** * Add Recipe - * @param input as input stack - * @param outputs as chemical stack array + * @param input as input stack + * @param chance chance of output (Optional) + * @param outputs as Ingredient stack array */ @ZenMethod public static void addRecipe(IIngredient input, @Optional double chance, IIngredient[]... multiOutputs) @@ -95,8 +96,9 @@ public static void addFluid(ILiquidStack input,IIngredient... outputs) /** * Add Select Recipe - * @param input as input stack - * @param outputs as recipe output stack array + * @param input as input stack + * @param multioutputs as recipe output stack array + * @param chance chance of any output */ //@ZenMethod public static void addMultiRecipe(IIngredient input, IIngredient[][] multioutputs, @Optional double chance)