mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fixed Elytra issues for 1_9_R1, still not able to find .isGliding() in
R2?
This commit is contained in:
1 parent
fcc75800d2
commit
6fa3f4c8df
3 files changed
+29
-2
No files matched your search
@@ -64,6 +64,7 @@ import net.gravitydevelopment.anticheat.util.Distance;
|
||||
import net.gravitydevelopment.anticheat.util.Permission;
|
||||
import net.gravitydevelopment.anticheat.util.User;
|
||||
import net.gravitydevelopment.anticheat.util.Utilities;
|
||||
import net.gravitydevelopment.anticheat.util.VersionUtil;
|
||||
|
||||
public class PlayerListener extends EventListener {
|
||||
|
||||
@@ -332,7 +333,7 @@ public class PlayerListener extends EventListener {
|
||||
log(result.getMessage(), player, CheckType.SPRINT);
|
||||
}
|
||||
}
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLY) && !player.isFlying()) /*TODO: ElytraFly fix */ {
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLY) && !VersionUtil.isFlying(player)) {
|
||||
CheckResult result = FlightCheck.runCheck(player, distance);
|
||||
if (result.failed()) {
|
||||
if (!silentMode()) {
|
||||
@@ -341,7 +342,7 @@ public class PlayerListener extends EventListener {
|
||||
log(result.getMessage(), player, CheckType.FLY);
|
||||
}
|
||||
}
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLY) && !player.isFlying())/*TODO: ElytraFly fix */ {
|
||||
if (getCheckManager().willCheckQuick(player, CheckType.FLY) && !VersionUtil.isFlying(player)) {
|
||||
CheckResult result = GlideCheck.runCheck(player, distance);
|
||||
if (result.failed()) {
|
||||
// NO TELEPORT NEEDED HERE, HANDLED BY CHECK ITSELF
|
||||
|
||||
Reference in new issue
Block a user