Skip to content

Commit

Permalink
Made it use OffGroundTicks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagdedes2 committed Feb 25, 2025
1 parent 7ff9197 commit d85d7a2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/gteam/wave/checks/impl/motion/Speed10A.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

@Disabled
public class Speed10A extends Check {
private int airTicks = 0;

public Speed10A(final Profile profile) {
super(profile, CheckType.SPEED, "SP10A", "Impossible XZ speed");
Expand All @@ -25,8 +24,10 @@ public void handle(final ClientPlayPacket clientPlayPacket) {

final MovementData movementData = profile.getMovementData();
final ActionData actionData = profile.getActionData();
airTicks = movementData.isOnGround() ? 0 : airTicks + 1;
if (airTicks <= 2) return;

final int offGroundTicks = movementData.getOffGroundTicks();

if (offGroundTicks <= 2) return;

final double deltaXZ = movementData.getDeltaXZ();
final double lastDeltaXZ = movementData.getLastDeltaXZ();
Expand Down

0 comments on commit d85d7a2

Please sign in to comment.