Fixing some coloring issues

This commit is contained in:
nossr50 2019-02-01 11:00:02 -08:00
parent e65e6ad14e
commit c839837d7a

View File

@ -207,7 +207,6 @@ public class SalvageManager extends SkillManager {
if (!Salvage.arcaneSalvageEnchantLoss if (!Salvage.arcaneSalvageEnchantLoss
|| RandomChanceUtil.checkRandomChanceExecutionSuccess(new RandomChanceSkillStatic(getExtractFullEnchantChance(), getPlayer(), SubSkillType.SALVAGE_ARCANE_SALVAGE))) { || RandomChanceUtil.checkRandomChanceExecutionSuccess(new RandomChanceSkillStatic(getExtractFullEnchantChance(), getPlayer(), SubSkillType.SALVAGE_ARCANE_SALVAGE))) {
enchantMeta.addStoredEnchant(enchant.getKey(), enchant.getValue(), true); enchantMeta.addStoredEnchant(enchant.getKey(), enchant.getValue(), true);
} }
else if (enchant.getValue() > 1 else if (enchant.getValue() > 1
&& Salvage.arcaneSalvageDowngrades && Salvage.arcaneSalvageDowngrades
@ -234,7 +233,10 @@ public class SalvageManager extends SkillManager {
book.setItemMeta(enchantMeta); book.setItemMeta(enchantMeta);
} else { } else {
if(enchantMeta.getStoredEnchants().size() > 0)
{
NotificationManager.sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Salvage.Skills.ArcaneFailed"); NotificationManager.sendPlayerInformation(player, NotificationType.SUBSKILL_MESSAGE_FAILED, "Salvage.Skills.ArcaneFailed");
}
return null; return null;
} }