From 04e5dda127c4006ab5a83d577458446044577994 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sun, 23 Mar 2014 13:51:17 +0100 Subject: [PATCH] Actually fix Repair lucky perk with Arcane Forging downgrade chance --- .../java/com/gmail/nossr50/skills/repair/RepairManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java index ace7d3c80..ec7513d1e 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/RepairManager.java @@ -340,7 +340,7 @@ public class RepairManager extends SkillManager { if (getKeepEnchantChance() > Misc.getRandom().nextInt(activationChance)) { int enchantLevel = enchant.getValue(); - if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && Misc.getRandom().nextInt(activationChance) <= getDowngradeEnchantChance()) { + if (ArcaneForging.arcaneForgingDowngrades && enchantLevel > 1 && (100 - getDowngradeEnchantChance()) <= Misc.getRandom().nextInt(activationChance)) { item.addUnsafeEnchantment(enchantment, enchantLevel - 1); downgraded = true; }