From 587b317cb69f39286dfdb0c0fda8c35f19e0b608 Mon Sep 17 00:00:00 2001 From: ManInMyVan <113963219+ManInMyVan@users.noreply.github.com> Date: Sun, 8 Dec 2024 20:23:10 -0700 Subject: [PATCH] rename PostCheck to Post --- .../grimac/checks/impl/post/{PostCheck.java => Post.java} | 4 ++-- src/main/java/ac/grim/grimac/manager/CheckManager.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/ac/grim/grimac/checks/impl/post/{PostCheck.java => Post.java} (97%) diff --git a/src/main/java/ac/grim/grimac/checks/impl/post/PostCheck.java b/src/main/java/ac/grim/grimac/checks/impl/post/Post.java similarity index 97% rename from src/main/java/ac/grim/grimac/checks/impl/post/PostCheck.java rename to src/main/java/ac/grim/grimac/checks/impl/post/Post.java index 2f380859f4..8a5786a5f7 100644 --- a/src/main/java/ac/grim/grimac/checks/impl/post/PostCheck.java +++ b/src/main/java/ac/grim/grimac/checks/impl/post/Post.java @@ -24,7 +24,7 @@ import static com.github.retrooper.packetevents.protocol.packettype.PacketType.Play.Client.*; @CheckData(name = "Post") -public class PostCheck extends Check implements PacketCheck, PostPredictionCheck { +public class Post extends Check implements PacketCheck, PostPredictionCheck { private final ArrayDeque post = new ArrayDeque<>(); // Due to 1.9+ missing the idle packet, we must queue flags // 1.8 clients will have the same logic for simplicity, although it's not needed @@ -32,7 +32,7 @@ public class PostCheck extends Check implements PacketCheck, PostPredictionCheck private boolean sentFlying = false; private int isExemptFromSwingingCheck = Integer.MIN_VALUE; - public PostCheck(GrimPlayer playerData) { + public Post(GrimPlayer playerData) { super(playerData); } diff --git a/src/main/java/ac/grim/grimac/manager/CheckManager.java b/src/main/java/ac/grim/grimac/manager/CheckManager.java index 8bc2a3c4be..576c860344 100644 --- a/src/main/java/ac/grim/grimac/manager/CheckManager.java +++ b/src/main/java/ac/grim/grimac/manager/CheckManager.java @@ -19,7 +19,7 @@ import ac.grim.grimac.checks.impl.misc.TransactionOrder; import ac.grim.grimac.checks.impl.movement.*; import ac.grim.grimac.checks.impl.multiactions.*; -import ac.grim.grimac.checks.impl.post.PostCheck; +import ac.grim.grimac.checks.impl.post.Post; import ac.grim.grimac.checks.impl.prediction.DebugHandler; import ac.grim.grimac.checks.impl.prediction.NoFallB; import ac.grim.grimac.checks.impl.prediction.OffsetHandler; @@ -131,7 +131,7 @@ public CheckManager(GrimPlayer player) { .put(KnockbackHandler.class, new KnockbackHandler(player)) .put(GhostBlockDetector.class, new GhostBlockDetector(player)) .put(Phase.class, new Phase(player)) - .put(PostCheck.class, new PostCheck(player)) + .put(Post.class, new Post(player)) .put(NoFallB.class, new NoFallB(player)) .put(OffsetHandler.class, new OffsetHandler(player)) .put(SuperDebug.class, new SuperDebug(player))