From f93c8c78db724a62c578348b7794b2d1ef762353 Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Wed, 4 Dec 2024 20:24:11 +0100 Subject: [PATCH] add missing effect cause, for bee being poisoned --- patches/server/Missing-effect-cause.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/server/Missing-effect-cause.patch b/patches/server/Missing-effect-cause.patch index ed9246aa98..4982f0f2c0 100644 --- a/patches/server/Missing-effect-cause.patch +++ b/patches/server/Missing-effect-cause.patch @@ -4,6 +4,19 @@ Date: Tue, 16 Aug 2022 19:44:55 +0200 Subject: [PATCH] Missing effect cause +diff --git a/src/main/java/net/minecraft/world/entity/animal/Bee.java b/src/main/java/net/minecraft/world/entity/animal/Bee.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/entity/animal/Bee.java ++++ b/src/main/java/net/minecraft/world/entity/animal/Bee.java +@@ -0,0 +0,0 @@ public class Bee extends Animal implements NeutralMob, FlyingAnimal { + if (mobeffect != null) { + this.usePlayerItem(player, hand, itemstack); + if (!this.level().isClientSide) { +- this.addEffect(mobeffect); ++ this.addEffect(mobeffect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD); // Paper - Add missing effect cause + } + + return InteractionResult.SUCCESS; diff --git a/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java b/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java