From d18d3d2466fb6e9f5cdc38236ea8ac1f2f359be5 Mon Sep 17 00:00:00 2001 From: h31ix Date: Thu, 18 Oct 2012 15:38:35 -0400 Subject: [PATCH] Fixed another small issue with slabs in mid-air --- src/main/java/net/h31ix/anticheat/manage/Backend.java | 2 +- .../h31ix/anticheat/util/yaml/CommentedConfiguration.java | 5 ++--- src/main/resources/config.yml | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/h31ix/anticheat/manage/Backend.java b/src/main/java/net/h31ix/anticheat/manage/Backend.java index c18294c..015befd 100644 --- a/src/main/java/net/h31ix/anticheat/manage/Backend.java +++ b/src/main/java/net/h31ix/anticheat/manage/Backend.java @@ -597,7 +597,7 @@ public class Backend if(y1 == y2) { //Check if the player is on slabs or crouching on stairs - if(block.getRelative(BlockFace.NORTH).getTypeId() == 43 || block.getRelative(BlockFace.NORTH).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH).getTypeId() == 44 || block.getRelative(BlockFace.EAST).getTypeId() == 43 || block.getRelative(BlockFace.EAST).getTypeId() == 44 || block.getRelative(BlockFace.WEST).getTypeId() == 43 || block.getRelative(BlockFace.WEST).getTypeId() == 44) + if(block.getRelative(BlockFace.NORTH).getTypeId() == 43 || block.getRelative(BlockFace.NORTH).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH).getTypeId() == 44 || block.getRelative(BlockFace.EAST).getTypeId() == 43 || block.getRelative(BlockFace.EAST).getTypeId() == 44 || block.getRelative(BlockFace.WEST).getTypeId() == 43 || block.getRelative(BlockFace.WEST).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH_EAST).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH_EAST).getTypeId() == 44 || block.getRelative(BlockFace.SOUTH_WEST).getTypeId() == 43 || block.getRelative(BlockFace.SOUTH_WEST).getTypeId() == 44 || block.getRelative(BlockFace.NORTH_EAST).getTypeId() == 43 || block.getRelative(BlockFace.NORTH_EAST).getTypeId() == 44 || block.getRelative(BlockFace.NORTH_WEST).getTypeId() == 43 || block.getRelative(BlockFace.NORTH_WEST).getTypeId() == 44 ) { return false; } diff --git a/src/main/java/net/h31ix/anticheat/util/yaml/CommentedConfiguration.java b/src/main/java/net/h31ix/anticheat/util/yaml/CommentedConfiguration.java index 5dcad6c..4df0657 100644 --- a/src/main/java/net/h31ix/anticheat/util/yaml/CommentedConfiguration.java +++ b/src/main/java/net/h31ix/anticheat/util/yaml/CommentedConfiguration.java @@ -63,9 +63,8 @@ public class CommentedConfiguration extends YamlConfiguration comments.put("Log to console:", " # Should AntiCheat log to files?"); comments.put("# Should AntiCheat log to files?", " # 0 = off, 1 = log only when an event takes place, 2 = more detailed logs, 3 = most detailed logs"); comments.put("File log level:", " # Should AntiCheat display extra debug information when starting?"); - comments.put("Verbose startup:", " # If silent mode is on, players will not be stopped when they try to hack,"); - comments.put("# If silent mode is on, players will not be stopped when they try to hack,", " # and AntiCheat will do everything possible to keep them unaware of their rising hack level."); - comments.put("# and AntiCheat will do everything possible to keep them unaware of their rising hack level.", " # However, alerts will still be sent to console and to admins online, and events will still take place."); + comments.put("Verbose startup:", " # If silent mode is on, players will not be stopped when they try to hack, and AntiCheat will do everything possible to keep them unaware of their rising hack level."); + comments.put("# If silent mode is on, players will not be stopped when they try to hack, and AntiCheat will do everything possible to keep them unaware of their rising hack level.", " # However, alerts will still be sent to console and to admins online, and events will still take place."); comments.put("Silent mode:", " # Should ops be exempt from all checks?"); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 3a00e6d..bb6e818 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -36,8 +36,7 @@ System: File log level: 1 # Should AntiCheat display extra debug information when starting? Verbose startup: false - # If silent mode is on, players will not be stopped when they try to hack, - # and AntiCheat will do everything possible to keep them unaware of their rising hack level. + # If silent mode is on, players will not be stopped when they try to hack, and AntiCheat will do everything possible to keep them unaware of their rising hack level. # However, alerts will still be sent to console and to admins online, and events will still take place. Silent mode: false # Should ops be exempt from all checks?