Improve MineGeo exploration and mapping features

This commit is contained in:
2026-10-05 13:41:36 +05:00
parent aec0641f87
commit c5368fa8cc
69 changed files with 3581 additions and 333 deletions

View File

@@ -30,6 +30,7 @@ const dataset = check(
if (
dataset.source !== "plugin" ||
dataset.revision_id ||
dataset.parent_dataset_id ||
!["draft", "rejected"].includes(dataset.state)
)
throw new Error(
@@ -52,6 +53,14 @@ const input = check(
.single(),
);
if (!input.validated) throw new Error("The export must be validated first.");
if (
(input.manifest.availableViewpoints ?? input.manifest.viewpoints).some(
(p) => p.assetRoot,
)
)
throw new Error(
"Repair mixed-media drafts by uploading a new capture; accepted contribution files cannot be overwritten.",
);
const asset = input.manifest.assets.find((a) => a.path === "terrain.json.gz");
if (!asset) throw new Error("Missing original terrain export");
const raw = check(