compile fixes

compile fixes

compile fixes
This commit is contained in:
Jason Penilla
2024-04-24 20:40:32 -07:00
parent aa5add485f
commit 1db3411c0e
20 changed files with 73 additions and 55 deletions

View File

@@ -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
}