I made it pretty

This commit is contained in:
H31IX committed 2012-06-05 23:25:22 -04:00
1 parent 1f53f4d1cd
commit 7ad0f63c34
2 files changed
+212 -232

No files matched your search

@@ -153,18 +153,17 @@ public class PlayerListener extends EventListener
}
/* Interactions Check */
Block block = event.getClickedBlock();
Block block = event.getClickedBlock();
if(checkManager.willCheck(player, CheckType.INTERACTION) && Utilities.isInteractable(block.getType()))
{
// save load and actually call the backend check here.
if(backend.checkInteraction(player, block))
{
event.setCancelled(true);
log("failed interaction check",player,CheckType.INTERACTION);
}
System.out.println("checking interaction");
// save load and actually call the backend check here.
if(backend.checkInteraction(player, block))
{
event.setCancelled(true);
log("failed interaction check",player,CheckType.INTERACTION);
}
}
}
@EventHandler(ignoreCancelled = true)