Skip to content

Commit

Permalink
removed unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
XIII-MC committed Oct 19, 2024
1 parent ccac2c3 commit a3e5e61
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/net/gteam/wave/checks/impl/fly/Fly10A.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,12 @@ public void handle(final ClientPlayPacket clientPlayPacket) {
final boolean jumpBlockAbove = (movementData.getBlocksAboveTicks() <= 1 || movementData.getLastBlocksAboveTicks() <= 1)
&& Math.abs(0.2000000476837 - MathUtils.decimalRound(deltaY, 13)) < maximumOffset;

//final boolean jumpGlitch = ((movementData.getClientGroundTicks() <= 1 || ((movementData.getClientGroundTicks() <= 3 || movementData.getServerGroundTicks() == 8 || movementData.getServerGroundTicks() == 9 || movementData.getServerGroundTicks() == 10 || movementData.getServerGroundTicks() == 14 || movementData.getServerGroundTicks() == 15) && (movementData.getNearGroundTicks() <= 1))) && movementData.getLastNearWallTicks() <= 10 && (MathUtils.decimalRound(deltaY, 2) == 0.40 || MathUtils.decimalRound(deltaY, 2) == 0.33 || MathUtils.decimalRound(deltaY, 2) == -0.09 || MathUtils.decimalRound(deltaY, 2) == -0.15));

final boolean jumpLowBlock = movementData.getHalfBlocksTicks() <= 2
|| (movementData.getOffGroundTicks() == 1 && deltaY == 0.5);

final boolean jumped = movementData.isLastOnGround()
&& deltaY == MoveUtils.JUMP_MOTION;

//final boolean fix = !(((movementData.getNearbyBlocksBellow().size() > 1 || !BetterStream.anyMatch(movementData.getNearbyBlocksBellow(), material -> material.toString().equalsIgnoreCase("AIR"))) && !movementData.getNearbyBlocksBellow().isEmpty()));

final boolean exempt = jumped
|| jumpLowBlock
|| nearGround
Expand Down

0 comments on commit a3e5e61

Please sign in to comment.