This commit is contained in:
Nicholas Ignoffo 2019-04-14 08:59:21 -07:00
parent f997aee891
commit 73d2459c6c

View file

@ -434,7 +434,7 @@ public class GenericHandler {
EntityPlayer player = event.getEntityPlayer();
ItemStack itemstack = EnchantmentHelper.getEnchantedItem(Enchantments.MENDING, player);
if (Loader.isModLoaded("unmending")) {
if (!Loader.isModLoaded("unmending")) {
if (!itemstack.isEmpty() && itemstack.isItemDamaged()) {
int i = Math.min(xpToDurability(event.getOrb().xpValue), itemstack.getItemDamage());
event.getOrb().xpValue -= durabilityToXp(i);