if (FMLCommonHandler.instance().getEffectiveSide().isClient())
return;
UserIdent ident = new UserIdent(e.entityPlayer);
WorldPoint point;
if (e.action == RIGHT_CLICK_AIR)
{
MovingObjectPosition mop = FunctionHelper.getPlayerLookingSpot(e.entityPlayer);
if (mop == null)
point = new WorldPoint(e.entityPlayer.dimension, e.x, e.y, e.z);
else
point = new WorldPoint(e.entityPlayer.dimension, mop.blockX, mop.blockY, mop.blockZ);
}
else
point = new WorldPoint(e.entityPlayer.dimension, e.x, e.y, e.z);
// Check for block interaction
if (e.action == RIGHT_CLICK_BLOCK)
{
Block block = e.world.getBlock(e.x, e.y, e.z);