Enchanted custom tools should now support Arcane Forging.

This commit is contained in:
GJ 2012-05-15 14:39:39 -04:00
parent e9af0ebdc5
commit e84a9643f8

View File

@ -530,6 +530,11 @@ public class Repair {
}
inventory.removeItem(repairMaterial);
if (configInstance.getArcaneForgingEnchantLossEnabled() && !permInstance.arcaneBypass(player)) {
addEnchants(player, item);
}
item.setDurability(newDurability);
}