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