mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Beautiful application of formatting, Thank's @mbax!
This commit is contained in:
1 parent
b1e4f0505f
commit
c59d93b0a7
2 files changed
+24
-24
No files matched your search
@@ -176,15 +176,15 @@ public class PlayerListener extends EventListener
|
||||
Distance distance = new Distance(player.getLocation(), event.getClickedBlock().getLocation());
|
||||
backend.checkLongReachBlock(player, distance.getXDifference(), distance.getYDifference(), distance.getZDifference());
|
||||
}
|
||||
|
||||
|
||||
/* Interactions Check */
|
||||
|
||||
Block block = event.getClickedBlock();
|
||||
if(block != null)
|
||||
|
||||
Block block = event.getClickedBlock();
|
||||
if (block != null)
|
||||
{
|
||||
if(checkManager.willCheck(player, CheckType.VISUAL))
|
||||
if (checkManager.willCheck(player, CheckType.VISUAL))
|
||||
{
|
||||
if(backend.checkInteraction(player, block, playerClick))
|
||||
if (backend.checkInteraction(player, block, playerClick))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("tried to interact with an object that they couldn't see", player, CheckType.VISUAL); //boring description though.
|
||||
|
||||
Reference in new issue
Block a user