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