Skip to content

Commit 64fdb57

Browse files
committed
fix #320 : mistake up getPercent() and getChance()
1 parent 23eb3a6 commit 64fdb57

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/modtweaker2/mods/forestry/handlers/Squeezer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static void addRecipe(ILiquidStack fluidOutput, int timePerItem, IItemSta
5656
*/
5757
@ZenMethod
5858
public static void addRecipe(ILiquidStack fluidOutput, WeightedItemStack itemOutput, IItemStack[] ingredients, int timePerItem) {
59-
MineTweakerAPI.apply(new Add(new SqueezerRecipe(timePerItem, toStacks(ingredients), toFluid(fluidOutput), toStack(itemOutput.getStack()), (int) itemOutput.getPercent())));
59+
MineTweakerAPI.apply(new Add(new SqueezerRecipe(timePerItem, toStacks(ingredients), toFluid(fluidOutput), toStack(itemOutput.getStack()), itemOutput.getChance())));
6060
}
6161

6262
@ZenMethod

0 commit comments

Comments
 (0)