New ThroughWalls check is not (yet?) supported on 1.12.2

This commit is contained in:
Rammelkast committed 2022-01-15 19:22:43 +01:00
1 parent c3fffbd68a
commit ffb7ea1ad4
2 files changed
+11

No files matched your search

@@ -40,6 +40,7 @@ import com.rammelkast.anticheatreloaded.check.CheckResult;
import com.rammelkast.anticheatreloaded.check.CheckResult.Result;
import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.config.providers.Checks;
import com.rammelkast.anticheatreloaded.util.MinecraftVersion;
import com.rammelkast.anticheatreloaded.util.MovementManager;
import com.rammelkast.anticheatreloaded.util.User;
import com.rammelkast.anticheatreloaded.util.Utilities;
@@ -247,6 +248,13 @@ public final class KillAuraCheck {
}
public static CheckResult checkThroughWalls(final Player player, final Entity target) {
// TODO this does not work on 1.12.2
// Either we finally drop 1.12.2 as well, or we create a workaround
// For now we just skip if server version is 1.12.2
if (MinecraftVersion.getCurrentVersion().getMinor() <= 12) {
return PASS;
}
final UUID uuid = player.getUniqueId();
final User user = AntiCheatReloaded.getManager().getUserManager().getUser(uuid);
final MovementManager movementManager = user.getMovementManager();
@@ -62,6 +62,9 @@ public final class SpeedCheck {
/**
* Largely based on Elevated's Frequency speed check
* @see https://github.com/ElevatedDev/Frequency/blob/master/src/main/java/xyz/elevated/frequency/check/impl/speed/Speed.java
*
* TODO fix falses with jumping under blocks
* TODO fix falses with entity collisions
*/
public static CheckResult checkPredict(final Player player, final Location movingTowards) {
final Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();