Small Rename.

This commit is contained in:
Super Spy committed 2012-06-13 07:37:49 -05:00
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;