This commit is contained in:
Jared 2018-09-12 20:56:41 +02:00
parent 5dd8c03392
commit c6a08761ab

View file

@ -26,7 +26,7 @@ public class SmeltingBonus {
return; return;
} }
ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toObject(input), InputHelper.toStack(stack.getStack()), (int) stack.getPercent())); ModTweaker.LATE_ADDITIONS.add(new Add(InputHelper.toObject(input), InputHelper.toStack(stack.getStack()), stack.getChance()));
} }
@ZenMethod @ZenMethod
@ -42,9 +42,9 @@ public class SmeltingBonus {
private ItemStack output; private ItemStack output;
private Object input; private Object input;
private int chance; private float chance;
public Add(Object input, ItemStack output, int chance) { public Add(Object input, ItemStack output, float chance) {
super("SmeltingBonus"); super("SmeltingBonus");
this.output = output; this.output = output;
this.input = input; this.input = input;