Skip to content

Commit

Permalink
Merge pull request #1850 from SergioK29/fix-missing-should-cancel-pac…
Browse files Browse the repository at this point in the history
…kets

Fix missing shouldModifyPackets
  • Loading branch information
AoElite authored Dec 4, 2024
2 parents d67b470 + 24409a5 commit 348daf6
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) {
if (player.getClientVersion().isOlderThan(ClientVersion.V_1_9)
&& PacketEvents.getAPI().getServerManager().getVersion().isNewerThan(ServerVersion.V_1_8)) return;

if (!sentAnimation && flagAndAlert()) {
if (!sentAnimation && flagAndAlert() && shouldModifyPackets()) {
event.setCancelled(true);
player.onPacketCancel();
}
Expand Down

0 comments on commit 348daf6

Please sign in to comment.