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)