Add eating regain reason for Camels (#8638)
This commit is contained in:
parent
7e5f85ea31
commit
075fb67c78
1 changed files with 13 additions and 0 deletions
|
@ -17,6 +17,19 @@ index a0dd4a58937a4e49e430d8c1470fe84b709e8044..0114c1cf3b6b0500149a77ebc190cb7f
|
||||||
return InteractionResult.CONSUME;
|
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
|
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
|
index 39c6b9b74e072953abe6398ecfcdd444e6d8f194..7ae0e4b3aa8e861500ddc7b38aa671258b532fcd 100644
|
||||||
--- a/src/main/java/net/minecraft/world/entity/animal/horse/Llama.java
|
--- a/src/main/java/net/minecraft/world/entity/animal/horse/Llama.java
|
||||||
|
|
Loading…
Reference in a new issue