map[ty - bounds.y][tx - bounds.x] = ti;
if(checkPermission()) map[ty - bounds.y][tx - bounds.x] = ti;
    public void setTileAt(int tx, int ty, Tile ti) {        try {            map[ty - bounds.y][tx - bounds.x] = ti;        } catch (ArrayIndexOutOfBoundsException e) {            // Silently ignore out of bounds exception        }    }