mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed Glide false positive
This commit is contained in:
1 parent
cb81a431d1
commit
1696ba6ac1
3 files changed
+7
-2
No files matched your search
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.gravitydevelopment.anticheat</groupId>
|
||||
<artifactId>AntiCheat</artifactId>
|
||||
<version>1.3.0-ALPHA</version>
|
||||
<version>1.3.1-ALPHA</version>
|
||||
<name>AntiCheatReloaded</name>
|
||||
<url>https://rammelkast.com</url>
|
||||
<properties>
|
||||
|
||||
@@ -12,6 +12,11 @@ import net.gravitydevelopment.anticheat.check.CheckResult;
|
||||
import net.gravitydevelopment.anticheat.util.Distance;
|
||||
import net.gravitydevelopment.anticheat.util.Utilities;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Marco
|
||||
* TODO rewrite this check
|
||||
*/
|
||||
public class FlightCheck {
|
||||
|
||||
private static final CheckResult PASS = new CheckResult(CheckResult.Result.PASSED);
|
||||
|
||||
@@ -36,7 +36,7 @@ public class GlideCheck {
|
||||
{
|
||||
if(math <= lastYDelta.get(name) && !(player.getEyeLocation().getBlock().getType() == Material.LADDER)
|
||||
&& !Utilities.isInWater(player) && !Utilities.isInWeb(player)
|
||||
&& Utilities.cantStandAtSingle(player.getLocation().getBlock()))
|
||||
&& Utilities.cantStandAt(player.getLocation().getBlock()))
|
||||
{
|
||||
if(!glideBuffer.containsKey(name))
|
||||
glideBuffer.put(name, 0);
|
||||
|
||||
Reference in new issue
Block a user