compile fixes
compile fixes compile fixes
This commit is contained in:
parent
aa5add485f
commit
1db3411c0e
20 changed files with 73 additions and 55 deletions
|
@ -59,11 +59,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ }
|
||||
+
|
||||
+ private void damageItemStack0(final net.minecraft.world.item.ItemStack nmsStack, final int amount, final net.minecraft.world.entity.EquipmentSlot slot) {
|
||||
+ nmsStack.hurtAndBreak(amount, this.getHandle(), livingEntity -> {
|
||||
+ if (slot != null) {
|
||||
+ livingEntity.broadcastBreakEvent(slot);
|
||||
+ }
|
||||
+ });
|
||||
+ nmsStack.hurtAndBreak(amount, this.getHandle(), slot);
|
||||
+ }
|
||||
+ // Paper end - ItemStack damage API
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue