Fix freeze locked (#12434)

This commit is contained in:
KioProject
2025-04-14 17:47:27 +08:00
committed by GitHub
parent dcb755acc6
commit 91bfb6fb7e

View File

@@ -1464,7 +1464,7 @@
if (this.level() instanceof ServerLevel serverLevel) {
profilerFiller.push("freezing");
- if (!this.isInPowderSnow || !this.canFreeze()) {
+ if (!this.isInPowderSnow || !this.canFreeze() && !this.freezeLocked) { // Paper - Freeze Tick Lock API
+ if ((!this.isInPowderSnow || !this.canFreeze()) && !this.freezeLocked) { // Paper - Freeze Tick Lock API
this.setTicksFrozen(Math.max(0, this.getTicksFrozen() - 2));
}