mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user