angery
This commit is contained in:
parent
f997aee891
commit
73d2459c6c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue