if (f == null) return;
    public static void importTile(int tileset, int tile, File f)    {        try        {            FileReader in = new FileReader(f);            char[] cbuf = new char[(int) f.length()];            in.read(cbuf);            in.close();            String tmp[] = new String(cbuf).split("\n");            tilesets[tileset].setTileAsString(tile, tmp[0]);            tilesets[tileset].setTileAsString(tile ^ 512, tmp[1]);        }        catch (FileNotFoundException e)        {            System.err.println("Unable to find file to import tile from.");        }        catch (IOException e)        {            System.err.println("Error reading file to import tile from.");        }    }