Skip to content

Commit

Permalink
Merge pull request #1668 from ManInMyVan/fix/bpL-noslow
Browse files Browse the repository at this point in the history
don't cancel RELEASE_USE_ITEM packets in BadPacketsL
  • Loading branch information
AoElite authored Aug 21, 2024
2 parents e2cba13 + 00e6bf7 commit 104d1ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void onPacketReceive(PacketReceiveEvent event) {
+ packet.getBlockPosition().getX() + ", " + packet.getBlockPosition().getY() + ", " + packet.getBlockPosition().getZ() + ", " + packet.getBlockFace()
+ ", sequence=" + packet.getSequence()
+ ", action=" + packet.getAction().toString().toLowerCase(Locale.ROOT).replace("_", " ") + " v" + player.getVersionName()
) && shouldModifyPackets()) {
) && shouldModifyPackets() && packet.getAction() != DiggingAction.RELEASE_USE_ITEM) {
event.setCancelled(true);
player.onPacketCancel();
}
Expand Down

0 comments on commit 104d1ec

Please sign in to comment.