@@ -11,7 +11,7 @@ the logic associated with damaging them
1111public net.minecraft.world.entity.LivingEntity entityEventForEquipmentBreak(Lnet/minecraft/world/entity/EquipmentSlot;)B
1212
1313diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java
14- index 1623c127c83c6704989f8f06f4de8123cc0c24cf..f0c0f2fe612874ceffcef442a537e32d5d8c395d 100644
14+ index 9209f5509affbd3cbcf777b75b0868c898ee913f..5dc286093f0befdb0988427f6134f752e62d0dc5 100644
1515--- a/src/main/java/net/minecraft/world/item/ItemStack.java
1616+++ b/src/main/java/net/minecraft/world/item/ItemStack.java
1717@@ -698,8 +698,13 @@ public final class ItemStack implements DataComponentHolder {
@@ -43,7 +43,7 @@ index 1623c127c83c6704989f8f06f4de8123cc0c24cf..f0c0f2fe612874ceffcef442a537e32d
4343 }
4444
4545 private void applyDamage(int damage, @Nullable LivingEntity player, Consumer<Item> breakCallback) { // Paper - Add EntityDamageItemEvent
46- @@ -779 ,6 +789 ,11 @@ public final class ItemStack implements DataComponentHolder {
46+ @@ -781 ,6 +791 ,11 @@ public final class ItemStack implements DataComponentHolder {
4747 }
4848
4949 public void hurtAndBreak(int amount, LivingEntity entity, EquipmentSlot slot) {
@@ -55,7 +55,7 @@ index 1623c127c83c6704989f8f06f4de8123cc0c24cf..f0c0f2fe612874ceffcef442a537e32d
5555 Level world = entity.level();
5656
5757 if (world instanceof ServerLevel worldserver) {
58- @@ -791 ,8 +806 ,8 @@ public final class ItemStack implements DataComponentHolder {
58+ @@ -793 ,8 +808 ,8 @@ public final class ItemStack implements DataComponentHolder {
5959 }
6060
6161 this.hurtAndBreak(amount, worldserver, entity, (item) -> { // Paper - Add EntityDamageItemEvent
0 commit comments