Fixed Elytra issues for 1_9_R1, still not able to find .isGliding() in

R2?
This commit is contained in:
Rammelkast committed 2016-06-05 13:37:16 +02:00
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