Skip to content

Commit c87ae3a

Browse files
committed
rename NoFallA and NoFallB classes to match check name
1 parent 423f2d0 commit c87ae3a

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

src/main/java/ac/grim/grimac/checks/impl/groundspoof/NoFallA.java src/main/java/ac/grim/grimac/checks/impl/groundspoof/NoFall.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
// Catches NoFalls for LOOK and GROUND packets
1919
// This check runs AFTER the predictions
2020
@CheckData(name = "NoFall", setback = 10)
21-
public class NoFallA extends Check implements PacketCheck {
21+
public class NoFall extends Check implements PacketCheck {
2222

2323
public boolean flipPlayerGroundStatus = false;
2424

25-
public NoFallA(GrimPlayer player) {
25+
public NoFall(GrimPlayer player) {
2626
super(player);
2727
}
2828

src/main/java/ac/grim/grimac/checks/impl/prediction/NoFallB.java src/main/java/ac/grim/grimac/checks/impl/prediction/GroundSpoof.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import com.github.retrooper.packetevents.protocol.player.GameMode;
1111

1212
@CheckData(name = "GroundSpoof", setback = 10, decay = 0.01)
13-
public class NoFallB extends Check implements PostPredictionCheck {
13+
public class GroundSpoof extends Check implements PostPredictionCheck {
1414

15-
public NoFallB(GrimPlayer player) {
15+
public GroundSpoof(GrimPlayer player) {
1616
super(player);
1717
}
1818

@@ -29,9 +29,7 @@ public void onPredictionComplete(final PredictionComplete predictionComplete) {
2929
// Viaversion sends wrong ground status... (doesn't matter but is annoying)
3030
if (player.packetStateData.lastPacketWasTeleport) return;
3131

32-
boolean invalid = player.clientClaimsLastOnGround != player.onGround;
33-
34-
if (invalid) {
32+
if (player.clientClaimsLastOnGround != player.onGround) {
3533
if (flagWithSetback()) {
3634
alert("claimed " + player.clientClaimsLastOnGround);
3735
}

src/main/java/ac/grim/grimac/manager/CheckManager.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import ac.grim.grimac.checks.impl.exploit.ExploitA;
1313
import ac.grim.grimac.checks.impl.exploit.ExploitB;
1414
import ac.grim.grimac.checks.impl.exploit.ExploitC;
15-
import ac.grim.grimac.checks.impl.groundspoof.NoFallA;
15+
import ac.grim.grimac.checks.impl.groundspoof.NoFall;
1616
import ac.grim.grimac.checks.impl.misc.ClientBrand;
1717
import ac.grim.grimac.checks.impl.misc.FastBreak;
1818
import ac.grim.grimac.checks.impl.misc.GhostBlockMitigation;
@@ -21,7 +21,7 @@
2121
import ac.grim.grimac.checks.impl.multiactions.*;
2222
import ac.grim.grimac.checks.impl.post.Post;
2323
import ac.grim.grimac.checks.impl.prediction.DebugHandler;
24-
import ac.grim.grimac.checks.impl.prediction.NoFallB;
24+
import ac.grim.grimac.checks.impl.prediction.GroundSpoof;
2525
import ac.grim.grimac.checks.impl.prediction.OffsetHandler;
2626
import ac.grim.grimac.checks.impl.prediction.Phase;
2727
import ac.grim.grimac.checks.impl.scaffolding.*;
@@ -78,7 +78,7 @@ public CheckManager(GrimPlayer player) {
7878
.put(ActionManager.class, player.actionManager)
7979
.put(TeamHandler.class, new TeamHandler(player))
8080
.put(ClientBrand.class, new ClientBrand(player))
81-
.put(NoFallA.class, new NoFallA(player))
81+
.put(NoFall.class, new NoFall(player))
8282
.put(BadPacketsO.class, new BadPacketsO(player))
8383
.put(BadPacketsA.class, new BadPacketsA(player))
8484
.put(BadPacketsB.class, new BadPacketsB(player))
@@ -132,7 +132,7 @@ public CheckManager(GrimPlayer player) {
132132
.put(GhostBlockDetector.class, new GhostBlockDetector(player))
133133
.put(Phase.class, new Phase(player))
134134
.put(Post.class, new Post(player))
135-
.put(NoFallB.class, new NoFallB(player))
135+
.put(GroundSpoof.class, new GroundSpoof(player))
136136
.put(OffsetHandler.class, new OffsetHandler(player))
137137
.put(SuperDebug.class, new SuperDebug(player))
138138
.put(DebugHandler.class, new DebugHandler(player))
@@ -326,8 +326,8 @@ public PacketEntityReplication getEntityReplication() {
326326
return packetEntityReplication;
327327
}
328328

329-
public NoFallA getNoFall() {
330-
return getPacketCheck(NoFallA.class);
329+
public NoFall getNoFall() {
330+
return getPacketCheck(NoFall.class);
331331
}
332332

333333
private CompensatedInventory inventory = null;

0 commit comments

Comments
 (0)