{
if ( enumfacing.getFrontOffsetX() == d.offsetX && enumfacing.getFrontOffsetY() == d.offsetY && enumfacing.getFrontOffsetZ() == d.offsetZ )
dir = d;
}
ToolMassCannon tm = (ToolMassCannon) i;
World w = dispenser.getWorld();
if ( w instanceof WorldServer )
{
EntityPlayer p = Platform.getPlayer( (WorldServer) w );
Platform.configurePlayer( p, dir, dispenser.getBlockTileEntity() );
p.posX += dir.offsetX;
p.posY += dir.offsetY;
p.posZ += dir.offsetZ;
dispensedItem = tm.onItemRightClick( dispensedItem, w, p );
}
}
return dispensedItem;
}