mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
Fix LivingDropsEvent not having all drops for foxes (#8387)
This commit is contained in:
1 parent
c3e0b071a2
commit
bc24487d0e
1 file changed
+18
@@ -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_;
|
||||
|
||||
Reference in new issue
Block a user