aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLulu13022002 <[email protected]>2024-12-04 20:24:11 +0100
committerLulu13022002 <[email protected]>2024-12-04 20:24:11 +0100
commit2a4ba00d9f039612ded57cba226bc429c15abe04 (patch)
tree653f947cfe0fea65d957fb0bd5bf9bd4315fef4f
parente73d39671d51dac0c376ce04936a3305459a8b9d (diff)
downloadPaper-2a4ba00d9f039612ded57cba226bc429c15abe04.tar.gz
Paper-2a4ba00d9f039612ded57cba226bc429c15abe04.zip
add missing effect cause, for bee being poisoned
-rw-r--r--patches/server/0726-Missing-effect-cause.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/server/0726-Missing-effect-cause.patch b/patches/server/0726-Missing-effect-cause.patch
index 6157121022..85e40f7bb1 100644
--- a/patches/server/0726-Missing-effect-cause.patch
+++ b/patches/server/0726-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 ca706f1ac5f4248164daa613eef81e46b3e5a210..0bafe14342c1acce131ad34717c18aed3718deed 100644
+--- a/src/main/java/net/minecraft/world/entity/animal/Bee.java
++++ b/src/main/java/net/minecraft/world/entity/animal/Bee.java
+@@ -636,7 +636,7 @@ 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 068d96cd0bceec79f14fbf3289eeb81533d1ba22..31b10cd404b672d7ce21c2107d8f83e32de26ef4 100644
--- a/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java