Fixed flying false-positives

This commit is contained in:
h31ix committed 2012-09-30 12:50:45 -04:00
1 parent bc468d37ef
commit 8405f4a15e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>net.h31ix.anticheat</groupId> <groupId>net.h31ix.anticheat</groupId>
<artifactId>AntiCheat</artifactId> <artifactId>AntiCheat</artifactId>
<version>1.3.8</version> <version>1.3.8-U1</version>
<name>AntiCheat</name> <name>AntiCheat</name>
<url>http://gravitydevelopment.net</url> <url>http://gravitydevelopment.net</url>
<repositories> <repositories>
@@ -574,8 +574,8 @@ public class Backend
return false; return false;
} }
String name = player.getName(); String name = player.getName();
int y1 = (int)distance.fromY(); double y1 = distance.fromY();
int y2 = (int)distance.toY(); double y2 = distance.toY();
if(!isMovingExempt(player) && !Utilities.isInWater(player) && !Utilities.canStand(player.getLocation().getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -1, 0).getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -2, 0).getBlock())) if(!isMovingExempt(player) && !Utilities.isInWater(player) && !Utilities.canStand(player.getLocation().getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -1, 0).getBlock()) && Utilities.cantStandAt(player.getLocation().add(0, -2, 0).getBlock()))
{ {
Block block = player.getLocation().getBlock(); Block block = player.getLocation().getBlock();
+1 -1
View File
@@ -6,7 +6,7 @@ name: AntiCheat
softdepend: [AntiCheat] softdepend: [AntiCheat]
startup: postworld startup: postworld
url: http://gravitydevelopment.net url: http://gravitydevelopment.net
version: ${project.version} version: ${project.version}-DEV-b${BUILD_NUMBER}
commands: commands:
anticheat: anticheat:
description: Control and view info about AntiCheat description: Control and view info about AntiCheat