From 91bfb6fb7e7106fe6bd02b7131d5b5adcb476846 Mon Sep 17 00:00:00 2001 From: KioProject <61594596+KioProject123@users.noreply.github.com> Date: Mon, 14 Apr 2025 17:47:27 +0800 Subject: [PATCH] Fix freeze locked (#12434) --- .../sources/net/minecraft/world/entity/LivingEntity.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch index 02b24b9ac..8778cc24e 100644 --- a/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch @@ -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)); }