Explaining, small fix to avoid false kicks. This will probably one of the last commits before beginning a re-write.

This commit is contained in:
Adam committed 2012-04-24 22:48:01 -04:00
1 parent 08139b001e
commit 3abed11387
13 files changed
+65 -25

No files matched your search

@@ -1,10 +1,8 @@
package net.h31ix.anticheat.checks;
import java.util.HashSet;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
public class EyeCheck {
@@ -15,6 +13,7 @@ public class EyeCheck {
public boolean canSee(Player player, Block block)
{
//TODO: The logic here is NOT concrete, especially when looking down at an angle.
List<Block> blocks = player.getLineOfSight(null, 20);
Location bloc = block.getLocation();
boolean see = false;