From f68ecd3214338222fe1fcdf98b348c49e4f2f974 Mon Sep 17 00:00:00 2001 From: Oaksworth <46974852+Oaksworth@users.noreply.github.com> Date: Wed, 23 Jan 2019 19:20:25 -0200 Subject: [PATCH] Update Repair to alphabetical order --- .../nossr50/commands/skills/RepairCommand.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java index 3df92a91a..c313adf71 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/RepairCommand.java @@ -92,15 +92,6 @@ public class RepairCommand extends SkillCommand { protected List statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) { List messages = new ArrayList(); - if (canMasterRepair) { - messages.add(getStatMessage(false, true, SubSkillType.REPAIR_REPAIR_MASTERY, repairMasteryBonus)); - } - - if (canSuperRepair) { - messages.add(getStatMessage(SubSkillType.REPAIR_SUPER_REPAIR, superRepairChance) - + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", superRepairChanceLucky) : "")); - } - if (canArcaneForge) { RepairManager repairManager = UserManager.getPlayer(player).getRepairManager(); @@ -112,6 +103,15 @@ public class RepairCommand extends SkillCommand { String.valueOf(arcaneBypass ? 0 : repairManager.getDowngradeEnchantChance()))); //Jesus those parentheses } } + + if (canMasterRepair) { + messages.add(getStatMessage(false, true, SubSkillType.REPAIR_REPAIR_MASTERY, repairMasteryBonus)); + } + + if (canSuperRepair) { + messages.add(getStatMessage(SubSkillType.REPAIR_SUPER_REPAIR, superRepairChance) + + (isLucky ? LocaleLoader.getString("Perks.Lucky.Bonus", superRepairChanceLucky) : "")); + } return messages; }