mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
compile fixes
compile fixes compile fixes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user