Skip to content

Commit

Permalink
fix swimming noslowc false in 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Aug 15, 2024
1 parent 6ba64ba commit 44d0098
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/main/java/ac/grim/grimac/checks/impl/movement/NoSlowC.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 44d0098

Please sign in to comment.