More small changes

This commit is contained in:
Rammelkast committed 2018-08-15 20:28:52 +02:00
1 parent 1a64403223
commit 8e92077bb6
23 files changed
+2026 -2399

No files matched your search

@@ -25,6 +25,7 @@ import org.bukkit.entity.Player;
import com.rammelkast.anticheatreloaded.AntiCheatReloaded;
import com.rammelkast.anticheatreloaded.check.CheckType;
import com.rammelkast.anticheatreloaded.config.Configuration;
import com.rammelkast.anticheatreloaded.util.VersionUtil;
import java.util.ArrayList;
import java.util.HashMap;
@@ -177,8 +178,7 @@ public class CheckManager {
&& !type.checkPermission(player)
&& !isOpExempt(player);
AntiCheatReloaded.debugLog("Check " + type + (check ? " run " : " not run ") + "on " + player.getName());
// TODO temp fix
if ((type == CheckType.FLY || type == CheckType.SPEED) && player.isFlying())
if ((type == CheckType.FLIGHT || type == CheckType.SPEED) && VersionUtil.isFlying(player))
return false;
return check;
}