Update to Minecraft 1.17.1

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2021-07-07 00:00:00 +10:00
parent 0392f45e9c
commit e8c9836ec9
59 changed files with 428 additions and 492 deletions

View File

@@ -73,7 +73,7 @@
@@ -49,23 +84,25 @@
if (flag && this.saturationLevel > 0.0F && entityhuman.ft() && this.foodLevel >= 20) {
if (flag && this.saturationLevel > 0.0F && entityhuman.fu() && this.foodLevel >= 20) {
++this.tickTimer;
- if (this.tickTimer >= 10) {
+ if (this.tickTimer >= this.saturatedRegenRate) { // CraftBukkit
@@ -86,7 +86,7 @@
+ entityhuman.applyExhaustion(f, org.bukkit.event.entity.EntityExhaustionEvent.ExhaustionReason.REGEN); // CraftBukkit - EntityExhaustionEvent
this.tickTimer = 0;
}
} else if (flag && this.foodLevel >= 18 && entityhuman.ft()) {
} else if (flag && this.foodLevel >= 18 && entityhuman.fu()) {
++this.tickTimer;
- if (this.tickTimer >= 80) {
- entityhuman.heal(1.0F);