Skip to content

Commit

Permalink
ItemStack#damage(int, SW, SPE) -> calculateDamage (#3966)
Browse files Browse the repository at this point in the history
* fix: ItemStack#damage(int, SW, @n SPE)I -> calculateDamage

* fix: rename 'amount' to 'baseDamage' in ItemStack#calculateDamage

---------

Co-authored-by: apple502j <[email protected]>
  • Loading branch information
Octol1ttle and apple502j authored Aug 24, 2024
1 parent c374998 commit bbaa833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mappings/net/minecraft/item/ItemStack.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ CLASS net/minecraft/class_1799 net/minecraft/item/ItemStack
ARG 3 entity
ARG 4 slot
METHOD method_61650 getEnchantability ()I
METHOD method_61651 damage (ILnet/minecraft/class_3218;Lnet/minecraft/class_3222;)I
ARG 1 amount
METHOD method_61651 calculateDamage (ILnet/minecraft/class_3218;Lnet/minecraft/class_3222;)I
ARG 1 baseDamage
ARG 2 world
ARG 3 player
METHOD method_61652 onDurabilityChange (ILnet/minecraft/class_3222;Ljava/util/function/Consumer;)V
Expand Down

0 comments on commit bbaa833

Please sign in to comment.