mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Do not trigger visual check for PHYSICAL interact
This commit is contained in:
1 parent
5be40eb4ea
commit
79b6b787ff
1 file changed
+9
-9
@@ -171,18 +171,18 @@ public class PlayerListener extends EventListener
|
||||
backend.logEatingStart(player);
|
||||
}
|
||||
}
|
||||
if (event.getClickedBlock() != null)
|
||||
{
|
||||
Distance distance = new Distance(player.getLocation(), event.getClickedBlock().getLocation());
|
||||
backend.checkLongReachBlock(player, distance.getXDifference(), distance.getYDifference(), distance.getZDifference());
|
||||
}
|
||||
|
||||
/* Visuals Check */
|
||||
|
||||
|
||||
Block block = event.getClickedBlock();
|
||||
|
||||
if (block != null)
|
||||
{
|
||||
if (checkManager.willCheck(player, CheckType.VISUAL) && !Utilities.isPressurePlate(block.getType()))
|
||||
Distance distance = new Distance(player.getLocation(), block.getLocation());
|
||||
backend.checkLongReachBlock(player, distance.getXDifference(), distance.getYDifference(), distance.getZDifference());
|
||||
|
||||
|
||||
/* Visuals Check */
|
||||
|
||||
if (checkManager.willCheck(player, CheckType.VISUAL) && event.getAction()!=Action.PHYSICAL)
|
||||
{
|
||||
if (backend.checkVisuals(player, block, playerClick))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user