From f88b1da96583f651558a9b004d2caf50d412ee81 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:58:34 +0200 Subject: [PATCH] Refuse only worlds older than 1.17 in the save upgrade test Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/save.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/horizon-client/src/save.rs b/crates/horizon-client/src/save.rs index 25c077400..274ad9820 100644 --- a/crates/horizon-client/src/save.rs +++ b/crates/horizon-client/src/save.rs @@ -116,7 +116,7 @@ impl SessionLock { /// (`FileFixerUpper`), then the DataFixers upgrades of every chunk, entity chunk, /// POI chunk, player, saved data, advancements and statistics file. Vanilla runs /// the latter as it reads each file; Horizon runs them all on opening, which reads -/// the same data. Worlds older than the ported fixes (1.18.2) are refused. +/// the same data. Worlds older than the ported fixes (1.17) are refused. pub fn upgrade_older_world(world: &Path) -> Result<()> { let Some(root) = read_dat(&world.join("level.dat")) else { return Ok(()); @@ -2217,10 +2217,10 @@ mod tests { super::read_dat(&dir.join("level.dat")) .and_then(|r| super::number(r.get("Data")?.get("DataVersion"))) }; - // 1.18, older than the ported fixes: refused, left as it is. - super::write_dat(&dir.join("level.dat"), level(2860)).unwrap(); + // 1.16.5, older than the ported fixes: refused, left as it is. + super::write_dat(&dir.join("level.dat"), level(2586)).unwrap(); assert!(super::upgrade_older_world(&dir).is_err()); - assert_eq!(version(&dir), Some(2860)); + assert_eq!(version(&dir), Some(2586)); // 1.21.1: upgraded to the current version. super::write_dat(&dir.join("level.dat"), level(3955)).unwrap(); super::upgrade_older_world(&dir).unwrap();