From bc24487d0e6b822578399521363f77fed55697b5 Mon Sep 17 00:00:00 2001 From: Take Weiland Date: Tue, 15 Feb 2022 18:41:06 +0100 Subject: [PATCH] Fix LivingDropsEvent not having all drops for foxes (#8387) --- .../world/entity/animal/Fox.java.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/patches/minecraft/net/minecraft/world/entity/animal/Fox.java.patch b/patches/minecraft/net/minecraft/world/entity/animal/Fox.java.patch index 1b016e1cf4..079b4f4982 100644 --- a/patches/minecraft/net/minecraft/world/entity/animal/Fox.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/animal/Fox.java.patch @@ -1,5 +1,23 @@ --- a/net/minecraft/world/entity/animal/Fox.java +++ b/net/minecraft/world/entity/animal/Fox.java +@@ -646,13 +_,16 @@ + } + + protected void m_6668_(DamageSource p_28536_) { ++ super.m_6668_(p_28536_); ++ } ++ protected void m_5907_() { // Forge: move extra drops to dropEquipment to allow them to be captured by LivingDropsEvent ++ super.m_5907_(); + ItemStack itemstack = this.m_6844_(EquipmentSlot.MAINHAND); + if (!itemstack.m_41619_()) { + this.m_19983_(itemstack); + this.m_8061_(EquipmentSlot.MAINHAND, ItemStack.f_41583_); + } + +- super.m_6668_(p_28536_); + } + + public static boolean m_28471_(Fox p_28472_, LivingEntity p_28473_) { @@ -802,6 +_,17 @@ protected void m_8026_() { ServerLevel serverlevel = (ServerLevel)this.f_25114_;