From 3cd758647d87716bd7496c3fa2be78b158b52c04 Mon Sep 17 00:00:00 2001 From: sciwhiz12 Date: Mon, 20 Mar 2023 15:44:34 +0800 Subject: [PATCH] Fix incorrect variable used for swimming check (#9403) Because of the incorrect variable, the check to stop sprinting (and stop swimming) never fired correctly. 1.19.3's `flag5` variable was renamed to `flag7` in 1.19.4; however, this was not caught during patching because of the fuzzy patcher. Fixes #9399 --- .../net/minecraft/client/player/LocalPlayer.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/client/player/LocalPlayer.java.patch b/patches/minecraft/net/minecraft/client/player/LocalPlayer.java.patch index 96893d2c6c..346597f12c 100644 --- a/patches/minecraft/net/minecraft/client/player/LocalPlayer.java.patch +++ b/patches/minecraft/net/minecraft/client/player/LocalPlayer.java.patch @@ -64,7 +64,7 @@ + boolean flag8 = flag7 || this.f_19862_ && !this.f_185931_ || this.m_20069_() && !this.m_5842_() || (this.isInFluidType((fluidType, height) -> this.canSwimInFluidType(fluidType)) && !this.canStartSwimming()); if (this.m_6069_()) { - if (!this.f_19861_ && !this.f_108618_.f_108573_ && flag7 || !this.m_20069_()) { -+ if (!this.f_19861_ && !this.f_108618_.f_108573_ && flag5 || !(this.m_20069_() || this.isInFluidType((fluidType, height) -> this.canSwimInFluidType(fluidType)))) { ++ if (!this.f_19861_ && !this.f_108618_.f_108573_ && flag7 || !(this.m_20069_() || this.isInFluidType((fluidType, height) -> this.canSwimInFluidType(fluidType)))) { this.m_6858_(false); } } else if (flag8) {