From c839837d7a9ae10382659ae5c1e01f47065d34d8 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Fri, 1 Feb 2019 11:00:02 -0800 Subject: [PATCH] Fixing some coloring issues --- .../com/gmail/nossr50/skills/salvage/SalvageManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java index ba670287d..9ff30053a 100644 --- a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java +++ b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java @@ -207,7 +207,6 @@ public class SalvageManager extends SkillManager { if (!Salvage.arcaneSalvageEnchantLoss || RandomChanceUtil.checkRandomChanceExecutionSuccess(new RandomChanceSkillStatic(getExtractFullEnchantChance(), getPlayer(), SubSkillType.SALVAGE_ARCANE_SALVAGE))) { enchantMeta.addStoredEnchant(enchant.getKey(), enchant.getValue(), true); - } else if (enchant.getValue() > 1 && Salvage.arcaneSalvageDowngrades @@ -234,7 +233,10 @@ public class SalvageManager extends SkillManager { book.setItemMeta(enchantMeta); } else { - NotificationManager.sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Salvage.Skills.ArcaneFailed"); + if(enchantMeta.getStoredEnchants().size() > 0) + { + NotificationManager.sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Salvage.Skills.ArcaneFailed"); + } return null; }