From 075fb67c78560e569fb5dff09f222c7437e6f9b8 Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Sat, 10 Dec 2022 14:07:35 +0100 Subject: [PATCH] Add eating regain reason for Camels (#8638) --- .../server/0895-Missing-eating-regain-reason.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/server/0895-Missing-eating-regain-reason.patch b/patches/server/0895-Missing-eating-regain-reason.patch index 2be1a77a3b..0ba39044e1 100644 --- a/patches/server/0895-Missing-eating-regain-reason.patch +++ b/patches/server/0895-Missing-eating-regain-reason.patch @@ -17,6 +17,19 @@ index a0dd4a58937a4e49e430d8c1470fe84b709e8044..0114c1cf3b6b0500149a77ebc190cb7f return InteractionResult.CONSUME; } +diff --git a/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java b/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java +index 136da73e372b59f37665743c70833e815cd0070b..d9104d996c854cce1ff167706c93747cd69c3969 100644 +--- a/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java ++++ b/src/main/java/net/minecraft/world/entity/animal/camel/Camel.java +@@ -361,7 +361,7 @@ public class Camel extends AbstractHorse implements PlayerRideableJumping, Rider + } else { + boolean bl = this.getHealth() < this.getMaxHealth(); + if (bl) { +- this.heal(2.0F); ++ this.heal(2.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.EATING); // Paper + } + + boolean bl2 = this.isTamed() && this.getAge() == 0 && this.canFallInLove(); diff --git a/src/main/java/net/minecraft/world/entity/animal/horse/Llama.java b/src/main/java/net/minecraft/world/entity/animal/horse/Llama.java index 39c6b9b74e072953abe6398ecfcdd444e6d8f194..7ae0e4b3aa8e861500ddc7b38aa671258b532fcd 100644 --- a/src/main/java/net/minecraft/world/entity/animal/horse/Llama.java