if (tmp[0] < 0) return false;
        private boolean readTiles()        {            this.tileAddress = HackModule.toRegPointer(hm.rom.readMulti(                0x2F125B + (num * 4), 4));            this.tilesChanged = tileAddress > 0x3001ff;            //            System.out.println(            //                "About to read tileset #"            //                    + num            //                    + " tiles from 0x"            //                    + Integer.toHexString(tileAddress));            byte[] buffer = new byte[28673]; //int[] to decompress into            int[] tmp;            if ((tmp = hm.decomp(tileAddress, buffer, 28673))[0] != 28673)            {                System.out.println("Error bad compressed data on tileset #"                    + num + " tiles. (" + tmp[0] + ")");                if (tmp[0] < 0)                    return false;            }            tileOldCompLen = tmp[1];            int[] tile = new int[32];            int i = 0;            tileloop: for (int t = 0; t < 1024; t++)            {                for (int j = 0; j < 32; j++)                {                    try                    {                        tile[j] = buffer[i++];                    }                    catch (ArrayIndexOutOfBoundsException e)                    {                        break tileloop;                        //if the array has ended, there's nothing left to do                    }                }                for (int x = 0; x < 8; x++)                {                    for (int y = 0; y < 8; y++)                    {                        int c = 0;                        if ((tile[0 + 2 * y] & (128 >> x)) != 0)                            c = 1;                        if ((tile[1 + 2 * y] & (128 >> x)) != 0)                            c |= 2;                        if ((tile[16 + 2 * y] & (128 >> x)) != 0)                            c |= 4;                        if ((tile[17 + 2 * y] & (128 >> x)) != 0)                            c |= 8;                        this.tiles[t][x][y] = c;                    }                }            }            if (tmp[0] == 28673)                return true;            else                return false;        }