Skip to content

Commit

Permalink
Merge pull request #1647 from ManInMyVan/fix/noslowc
Browse files Browse the repository at this point in the history
fix swimming noslowc false in 1.13
  • Loading branch information
SamB440 authored Aug 15, 2024
2 parents 6ba64ba + 44d0098 commit e62323b
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 e62323b

Please sign in to comment.