Fix two bugs in Consumption Mending and poss ball

This commit is contained in:
Tara Piccari 2024-01-29 03:29:40 -07:00
parent 8c76b531bb
commit 5b5ea9f9ea
2 changed files with 1 additions and 11 deletions

View file

@ -111,7 +111,7 @@ public class ConsumptionMending extends Enchantment
int iDamage = stack.getDamageValue();
int iMax = stack.getMaxDamage();
int iNeeds = iDamage;
int iNeeds = iDamage * 2;
// The stack we are inspecting:
int nDamage = item.getDamageValue();

View file

@ -31,16 +31,6 @@ public class PossBallItem extends Item
} else return false;
}
@Override
public boolean isDamageable(ItemStack stack) {
return true;
}
@Override
public int getMaxDamage(ItemStack stack) {
return 2;
}
@Override
public InteractionResultHolder<ItemStack> use(Level pLevel, Player pPlayer, InteractionHand pUsedHand) {
ItemStack stack = pPlayer.getItemInHand(pUsedHand);