if (!isPressed(args)) {
return;
}
args.assertCompletelyParsed();
PlayerInteract hit = ((Player) source).get(PlayerInteract.class);
if (hit != null) {
final Block hitting = hit.getTargetBlock();
if (hitting != null && selection != null && !hitting.getMaterial().equals(VanillaMaterials.AIR)) {
final BlockFace clicked = hit.getTargetFace();
System.out.println(clicked);
if (clicked == null) {
return;
}
client.getLogger().info(clicked.name());