Small vision check fix

This commit is contained in:
Adam committed 2012-04-28 12:03:37 -04:00
1 parent 6f617c9162
commit 244a2c1c7c
2 files changed
+2 -4

No files matched your search

@@ -21,7 +21,7 @@ public class EyeCheck {
{ {
Location loc = b.getLocation(); Location loc = b.getLocation();
double d = loc.distance(bloc); double d = loc.distance(bloc);
if(d <= 1.5D) if(d <= 2D)
{ {
see = true; see = true;
} }
@@ -78,10 +78,8 @@ public class BlockListener implements Listener {
//This is mostly used for preventing build/autobuild hacks (Logic not yet finished) //This is mostly used for preventing build/autobuild hacks (Logic not yet finished)
if(!e.canSee(player, block) && !player.getWorld().getBlockAt(player.getLocation()).isLiquid()) if(!e.canSee(player, block) && !player.getWorld().getBlockAt(player.getLocation()).isLiquid())
{ {
//TODO: this is causing false alerts. Re-work the vision logic?
//tracker.increaseLevel(player);
plugin.log(player.getName()+" tried to place a block that they couldn't see!"); plugin.log(player.getName()+" tried to place a block that they couldn't see!");
//event.setCancelled(true); event.setCancelled(true);
} }
} }
if(!player.hasPermission("anticheat.longreach")) if(!player.hasPermission("anticheat.longreach"))