Skip to content

Commit

Permalink
Merge pull request #1874 from ManInMyVan/postcheck-to-post
Browse files Browse the repository at this point in the history
rename PostCheck to Post
  • Loading branch information
ManInMyVan authored Dec 9, 2024
2 parents c744501 + 587b317 commit f3433f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
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<PacketTypeCommon> 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
private final List<String> flags = new EvictingQueue<>(10);
private boolean sentFlying = false;
private int isExemptFromSwingingCheck = Integer.MIN_VALUE;

public PostCheck(GrimPlayer playerData) {
public Post(GrimPlayer playerData) {
super(playerData);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ac/grim/grimac/manager/CheckManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit f3433f3

Please sign in to comment.