Merge pull request #590 from ludovic111/feat/server-prepare-reports

horizon-prepare: keep the registry and command reports with the prepared files
This commit is contained in:
Ludovic Marie
2026-10-17 08:24:47 +02:00
committed by GitHub
+11
View File
@@ -787,6 +787,17 @@ fn steps(
install_datagen_reports(root, &reports)?;
}
// The registry and command reports, which the game reads next to these
// files when it serves players (a dedicated server, a LAN world): kept
// here too, so this folder works when it is copied or mounted alone.
let reports = run.local.join("datagen").join("out").join("reports");
for name in ["registries.json", "commands.json"] {
let (from, to) = (reports.join(name), root.join(name));
if from.is_file() && (!to.exists() || !run.same("server_sha256")) {
copy(&from, &to)?;
}
}
// Biome parameter tables come from the data generator reports above.
prepare_worldgen(run)?;