mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Small Rename.
This commit is contained in:
1 parent
68acc41398
commit
d876335f02
2 files changed
+3
-3
No files matched your search
@@ -177,14 +177,14 @@ public class PlayerListener extends EventListener
|
||||
backend.checkLongReachBlock(player, distance.getXDifference(), distance.getYDifference(), distance.getZDifference());
|
||||
}
|
||||
|
||||
/* Interactions Check */
|
||||
/* Visuals Check */
|
||||
|
||||
Block block = event.getClickedBlock();
|
||||
if (block != null)
|
||||
{
|
||||
if (checkManager.willCheck(player, CheckType.VISUAL))
|
||||
{
|
||||
if (backend.checkInteraction(player, block, playerClick))
|
||||
if (backend.checkVisuals(player, block, playerClick))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("tried to interact with an object that they couldn't see", player, CheckType.VISUAL); //boring description though.
|
||||
|
||||
@@ -276,7 +276,7 @@ public class Backend
|
||||
}
|
||||
}
|
||||
|
||||
public boolean checkInteraction(Player player, Block targetBlock, Block playerClick)
|
||||
public boolean checkVisuals(Player player, Block targetBlock, Block playerClick)
|
||||
{
|
||||
if (isInteracting(player) && !Utilities.isInteractable(targetBlock.getType()))
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user