From 317f30427efaf0faa44fb0a4554d4652187dbf82 Mon Sep 17 00:00:00 2001 From: masa-masa-0314 <348336850+masa-masa-0314@users.noreply.github.com> Date: Mon, 26 Oct 2026 22:33:08 +0800 Subject: [PATCH] Superflat: keep an empty layer list on Re-Create FlatSettings::from_tag rejected layers: [], so a world with every layer removed fell back to the classic bedrock/dirt/grass settings when re-created. An empty saved list is a valid void flat generator; a non-empty list whose entries all fail to parse is still rejected. Co-Authored-By: ZCode Agent --- crates/horizon-client/src/title/flat.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/title/flat.rs b/crates/horizon-client/src/title/flat.rs index 0840f8bf2..506064344 100644 --- a/crates/horizon-client/src/title/flat.rs +++ b/crates/horizon-client/src/title/flat.rs @@ -91,7 +91,9 @@ impl FlatSettings { }) }) .collect(); - if layers.is_empty() { + // `layers: []` is a valid void flat world; a list whose entries all + // fail to parse is not. + if layers.is_empty() && !list.is_empty() { return None; } let flag = |key: &str, default: bool| {