if(!checkPermission()) return;
    public void copyFrom(MapLayer other) {        for (int y = bounds.y; y < bounds.y + bounds.height; y++) {            for (int x = bounds.x; x < bounds.x + bounds.width; x++) {                setTileAt(x, y, other.getTileAt(x, y));            }        }    }