Skip to content

Commit

Permalink
Fixing some coloring issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nossr50 committed Feb 1, 2019
1 parent e65e6ad commit c839837
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ private ItemStack arcaneSalvageCheck(Map<Enchantment, Integer> enchants) {
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
Expand All @@ -234,7 +233,10 @@ else if (enchant.getValue() > 1

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;
}

Expand Down

0 comments on commit c839837

Please sign in to comment.