Fix two bugs in Consumption Mending and poss ball
This commit is contained in:
parent
8c76b531bb
commit
5b5ea9f9ea
2 changed files with 1 additions and 11 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in a new issue