Skip to content

Commit

Permalink
Merge pull request #1719 from ManInMyVan/fix/BadPacketsZ-false
Browse files Browse the repository at this point in the history
fix a BadPacketsZ false
  • Loading branch information
AoElite authored Sep 14, 2024
2 parents 0d28fa3 + 72a2dfd commit 598caa9
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ private boolean shouldExempt(final Vector3i pos) {
if (player.getClientVersion().isOlderThan(ClientVersion.V_1_14_4) && pos.y != exemptedY)
return false;

// the client only sends this packet if the last block was an instant break
if (getBlockDamage(player, lastBlock) < 1)
return false;

// and if this block is not an instant break
return player.getClientVersion().isOlderThan(ClientVersion.V_1_14_4) || getBlockDamage(player, pos) < 1;
}
Expand Down

0 comments on commit 598caa9

Please sign in to comment.