mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Ignore creative mode flying (whoops)
This commit is contained in:
1 parent
dca741b7b7
commit
cf8a612287
1 file changed
+1
-1
@@ -423,7 +423,7 @@ public class PlayerListener extends EventListener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (getCheckManager().willCheck(player, CheckType.FLY)) {
|
||||
if (getCheckManager().willCheck(player, CheckType.FLY) && !player.isFlying()) {
|
||||
CheckResult result1 = getBackend().checkYAxis(player, new Distance(from, to));
|
||||
CheckResult result2 = getBackend().checkAscension(player, from.getY(), to.getY());
|
||||
String log = result1.failed() ? result1.getMessage() : result2.failed() ? result2.getMessage() : "";
|
||||
|
||||
Reference in new issue
Block a user