From 3c3b4af2c4ed10843d0c9bba892db0694ff04f26 Mon Sep 17 00:00:00 2001 From: T00thpick1 Date: Sun, 19 May 2013 12:55:18 -0400 Subject: [PATCH] No salvaging chainmail - FIXES 1118 --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index a5242dfd5..56f4c0702 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -355,7 +355,7 @@ public class PlayerListener implements Listener { } } /* SALVAGE CHECKS */ - else if (blockID == Repair.salvageAnvilId && Permissions.salvage(player) && Repair.isSalvageable(heldItem)) { + else if (blockID == Repair.salvageAnvilId && Permissions.salvage(player) && Repair.isSalvageable(heldItem) && !ItemUtils.isChainmailArmor(heldItem)) { RepairManager repairManager = mcMMOPlayer.getRepairManager(); event.setCancelled(true);