From a95f05d683ce96d001cefcb7e54547c547dd3aa6 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 13 May 2012 21:01:37 -0400 Subject: [PATCH] Players walking on half-slabs over air should not trigger fly checks --- manifest.mf | 0 src/main/java/net/h31ix/anticheat/manage/Backend.java | 2 +- src/main/resources/config.yml | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 manifest.mf diff --git a/manifest.mf b/manifest.mf new file mode 100644 index 0000000..e69de29 diff --git a/src/main/java/net/h31ix/anticheat/manage/Backend.java b/src/main/java/net/h31ix/anticheat/manage/Backend.java index cec754e..f585bfd 100644 --- a/src/main/java/net/h31ix/anticheat/manage/Backend.java +++ b/src/main/java/net/h31ix/anticheat/manage/Backend.java @@ -217,7 +217,7 @@ public class Backend if(y1 == y2 && !isMovingExempt(player) && player.getVehicle() == null && player.getFallDistance() == 0 && !Utilities.isOnLilyPad(player)) { String name = player.getName(); - if(Utilities.cantStandAt(block) && !Utilities.isOnLilyPad(player)) + if(Utilities.cantStandAt(block) && !Utilities.isOnLilyPad(player) && !Utilities.canStand(player.getLocation().getBlock())) { int violation = 1; if(!flightViolation.containsKey(name)) diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 9a6eaa5..413cf40 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -12,6 +12,6 @@ Events: System: #Turning auto-update off is a _BAD_ idea. You will no longer be protected by the latest hacks/cheats if you do so. - #AntiCheat will never bother you about updates if this is on, but if you turn it off you will have to manuall update. + #AntiCheat will never bother you about updates if this is on, but if you turn it off you will have to manually update. Auto update: true Log to console: false \ No newline at end of file