mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
Fix freeze locked (#12434)
This commit is contained in:
@@ -1464,7 +1464,7 @@
|
|||||||
if (this.level() instanceof ServerLevel serverLevel) {
|
if (this.level() instanceof ServerLevel serverLevel) {
|
||||||
profilerFiller.push("freezing");
|
profilerFiller.push("freezing");
|
||||||
- if (!this.isInPowderSnow || !this.canFreeze()) {
|
- 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));
|
this.setTicksFrozen(Math.max(0, this.getTicksFrozen() - 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user