Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
Add eating regain reason for Camels (#8638)
Dieser Commit ist enthalten in:
Ursprung
7e5f85ea31
Commit
075fb67c78
@ -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
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren