Skip to content

Commit

Permalink
Merge pull request #1729 from Cyramek/fix-compilation
Browse files Browse the repository at this point in the history
fix compilation issues
  • Loading branch information
AoElite authored Sep 19, 2024
2 parents 5374ee3 + 4e4492e commit fad39af
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import ac.grim.grimac.checks.CheckData;
import ac.grim.grimac.checks.type.BlockPlaceCheck;
import ac.grim.grimac.player.GrimPlayer;
import ac.grim.grimac.utils.anticheat.MessageUtil;
import ac.grim.grimac.utils.anticheat.update.BlockPlace;
import ac.grim.grimac.utils.anticheat.update.PredictionComplete;
import com.github.retrooper.packetevents.event.PacketReceiveEvent;
Expand All @@ -15,8 +16,6 @@
import java.util.ArrayList;
import java.util.List;

import static ac.grim.grimac.utils.anticheat.MessageUtil.toUnlabledString;

@CheckData(name = "MultiPlace", experimental = true)
public class MultiPlace extends BlockPlaceCheck {
public MultiPlace(GrimPlayer player) {
Expand All @@ -38,8 +37,8 @@ public void onBlockPlace(final BlockPlace place) {

if (hasPlaced && (face != lastFace || !cursor.equals(lastCursor) || !pos.equals(lastPos))) {
final String verbose = "face=" + face + ", lastFace=" + lastFace
+ ", cursor=" + toUnlabledString(cursor) + ", lastCursor=" + toUnlabledString(lastCursor)
+ ", pos=" + toUnlabledString(pos) + ", lastPos=" + toUnlabledString(lastPos);
+ ", cursor=" + MessageUtil.toUnlabledString(cursor) + ", lastCursor=" + MessageUtil.toUnlabledString(lastCursor)
+ ", pos=" + MessageUtil.toUnlabledString(pos) + ", lastPos=" + MessageUtil.toUnlabledString(lastPos);
if (player.getClientVersion().isOlderThanOrEquals(ClientVersion.V_1_8)) {
if (flagAndAlert(verbose) && shouldModifyPackets() && shouldCancel()) {
place.resync();
Expand Down

0 comments on commit fad39af

Please sign in to comment.