From 44d0098905c875cd6ea1c6cb26e69383c94535d0 Mon Sep 17 00:00:00 2001 From: ManInMyVan Date: Wed, 14 Aug 2024 19:50:29 -0600 Subject: [PATCH] fix swimming noslowc false in 1.13 --- .../ac/grim/grimac/checks/impl/movement/NoSlowC.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/ac/grim/grimac/checks/impl/movement/NoSlowC.java b/src/main/java/ac/grim/grimac/checks/impl/movement/NoSlowC.java index 39f77a941c..c8070a0b32 100644 --- a/src/main/java/ac/grim/grimac/checks/impl/movement/NoSlowC.java +++ b/src/main/java/ac/grim/grimac/checks/impl/movement/NoSlowC.java @@ -33,13 +33,19 @@ public void onPredictionComplete(final PredictionComplete predictionComplete) { if (!predictionComplete.isChecked()) return; if (player.isSlowMovement) { + ClientVersion client = player.getClientVersion(); + // https://bugs.mojang.com/browse/MC-152728 - if (startedSprintingBeforeSlowMovement && player.getClientVersion().isNewerThanOrEquals(ClientVersion.V_1_14_2)) { + if (startedSprintingBeforeSlowMovement && client.isNewerThanOrEquals(ClientVersion.V_1_14_2)) { reward(); return; } - if (player.isSprinting && player.sneakingSpeedMultiplier < 0.8f) { + if (player.isSprinting + // you can sneak and swim in 1.13 - 1.14.1 + && (!player.isSwimming || client.isNewerThan(ClientVersion.V_1_14_1) || client.isOlderThan(ClientVersion.V_1_13)) + && player.sneakingSpeedMultiplier < 0.8f + ) { if (flagWithSetback()) alert(""); } else reward(); }