mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Added RegainReason.SATIATED.
This reason is used when a player regains health from generating due to their hunger being satisfied.
This commit is contained in:
1 parent
aa0739d90a
commit
a7717d4d79
1 file changed
+2
-1
@@ -49,7 +49,8 @@ public class FoodMetaData {
|
||||
if (this.foodLevel >= 18 && entityhuman.W()) {
|
||||
++this.foodTickTimer;
|
||||
if (this.foodTickTimer >= 80) {
|
||||
entityhuman.c(1);
|
||||
// CraftBukkit - added RegainReason.
|
||||
entityhuman.c(1, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.SATIATED);
|
||||
this.foodTickTimer = 0;
|
||||
}
|
||||
} else if (this.foodLevel <= 0) {
|
||||
|
||||
Reference in new issue
Block a user