From bbaa8331e4b8232f7bd985d4b243b422cd61327b Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Sat, 24 Aug 2024 19:54:34 +0500 Subject: [PATCH] ItemStack#damage(int, SW, SPE) -> calculateDamage (#3966) * fix: ItemStack#damage(int, SW, @N SPE)I -> calculateDamage * fix: rename 'amount' to 'baseDamage' in ItemStack#calculateDamage --------- Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com> --- mappings/net/minecraft/item/ItemStack.mapping | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mappings/net/minecraft/item/ItemStack.mapping b/mappings/net/minecraft/item/ItemStack.mapping index e4ae8d3fe2..a4e673caa9 100644 --- a/mappings/net/minecraft/item/ItemStack.mapping +++ b/mappings/net/minecraft/item/ItemStack.mapping @@ -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