Skip to content

Commit

Permalink
Fixed right click false
Browse files Browse the repository at this point in the history
  • Loading branch information
XIII-MC committed Oct 19, 2024
1 parent 87ed0c6 commit 8fd0e25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/net/gteam/wave/checks/impl/fly/Fly10A.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ public void handle(final ClientPlayPacket clientPlayPacket) {

if (invalid && !exempt) {

// GREEN (§a) till here
// YELLOW (§e) till here
// ORANGE (§6) till here
// GREEN (§a) till here
// YELLOW (§e) till here
// ORANGE (§6) till here
fail("§a" + "deltaY=" + deltaY + "\n"
+ "predictedDeltaY=" + predictedDeltaY + "\n"
+ "maximumOffset=" + maximumOffset + "\n" // GREEN (§a) till here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public class ActionData implements Data {

private int lastAllowFlightTicks, lastSleepingTicks, lastRidingTicks;

/*
* 1.9+
*/
private int lastDuplicateOnePointSeventeenPacketTicks = 100;

public ActionData(final Profile profile) {

this.desync = new Desync(profile);
Expand Down Expand Up @@ -81,4 +86,8 @@ public int getLastSleepingTicks() {
public GameMode getGameMode() {
return gameMode;
}

public int getLastDuplicateOnePointSeventeenPacketTicks() {
return lastDuplicateOnePointSeventeenPacketTicks;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public void process(final ClientPlayPacket packet) {

case PLAYER_POSITION_AND_ROTATION:

//1.17+
if (profile.getActionData().getLastDuplicateOnePointSeventeenPacketTicks() == 0) break; // TODO: sus?

final WrapperPlayClientPlayerPositionAndRotation posLook = packet.getPositionLookWrapper();

this.lastOnGround = this.onGround;
Expand Down

0 comments on commit 8fd0e25

Please sign in to comment.