Skip to content

Commit

Permalink
Remove print statements and cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Aug 26, 2024
1 parent dd7bb81 commit d272107
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ public void onBlockPlace(final BlockPlace place) {
}

if (flagBuffer > 0 && !didRayTraceHit(place)) {
// System.out.println("Flagged previously and currently");
// If the player hit and has flagged this check recently
if (flagAndAlert("pre-flying") && shouldModifyPackets() && shouldCancel()) {
// System.out.println("Canceling block at " + place.getPlacedBlockPos().getX() + " " + place.getPlacedBlockPos().getY() + " " + place.getPlacedBlockPos().getZ());
place.resync(); // Deny the block placement.
}
}
Expand Down Expand Up @@ -73,7 +71,6 @@ public void onPostFlyingBlockPlace(BlockPlace place) {
if (!hit) {
flagBuffer = 1;
flagAndAlert("post-flying");
// System.out.println("Cheater detected in post, failed check for placing block at " + place.getPlacedBlockPos().getX() + " " + place.getPlacedBlockPos().getY() + " " + place.getPlacedBlockPos().getZ());
} else {
flagBuffer = Math.max(0, flagBuffer - 0.1);
}
Expand Down

0 comments on commit d272107

Please sign in to comment.