Location from = event.getFrom();
Location to = event.getTo();
if(LocationUtil.getDistanceSquared(from, to) > 2*2) //Further than max distance
return;
boolean minor = from.getBlockX() == to.getBlockX() && from.getBlockY() == to.getBlockY() && from.getBlockZ() == to.getBlockZ();
CartBlockImpactEvent ev = new CartBlockImpactEvent(cart, from, to, cmb, minor);
CraftBookPlugin.inst().getServer().getPluginManager().callEvent(ev);
} catch (InvalidMechanismException ignored) {
}
}
}