Skip to content

Commit

Permalink
Check digging packets in PacketOrderF
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Aug 28, 2024
1 parent 7d7ead6 commit 56db10d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public void onPacketReceive(PacketReceiveEvent event) {
}
}

if (event.getPacketType() == PacketType.Play.Client.PLAYER_DIGGING) {
sent = true;
}

if (WrapperPlayClientPlayerFlying.isFlying(event.getPacketType()) && player.getClientVersion().isOlderThanOrEquals(ClientVersion.V_1_8) && !player.packetStateData.lastPacketWasTeleport) {
sent = false;
}
Expand Down

0 comments on commit 56db10d

Please sign in to comment.