From ef8b045d799c41a2913938061fec1368f115cc83 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 16 Oct 2026 01:11:36 +0200 Subject: [PATCH] Tests main added since: prepared resources under the generated version Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/gfx.rs | 3 ++- crates/horizon-client/src/menu.rs | 3 ++- crates/horizon-world/src/level/tests.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/horizon-client/src/gfx.rs b/crates/horizon-client/src/gfx.rs index e8d2aaab2..fd1340dd8 100644 --- a/crates/horizon-client/src/gfx.rs +++ b/crates/horizon-client/src/gfx.rs @@ -4440,7 +4440,8 @@ mod sprite_upload_tests { #[test] fn real_rail_mips_do_not_change_with_larger_array_layers() { let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../.local/horizon-client/26.3"); + .join("../../.local/horizon-client") + .join(horizon_core::VANILLA_VERSION); if !root .join("assets/minecraft/textures/block/rail.png") .exists() diff --git a/crates/horizon-client/src/menu.rs b/crates/horizon-client/src/menu.rs index f5d8c8480..6dc8d7b7f 100644 --- a/crates/horizon-client/src/menu.rs +++ b/crates/horizon-client/src/menu.rs @@ -2014,7 +2014,8 @@ pub(crate) mod tests { /// A menu over the game's data (`.local/horizon-client`); skipped without it. pub(crate) fn with_menu(kind: Kind, test: impl FnOnce(&Env, &mut Menu)) { let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")) - .join("../../.local/horizon-client/26.3"); + .join("../../.local/horizon-client") + .join(horizon_core::VANILLA_VERSION); if !root.join("items.json").exists() { return; } diff --git a/crates/horizon-world/src/level/tests.rs b/crates/horizon-world/src/level/tests.rs index cbfea3c7b..1a1b9ebae 100644 --- a/crates/horizon-world/src/level/tests.rs +++ b/crates/horizon-world/src/level/tests.rs @@ -1,5 +1,5 @@ //! Behaviour tests over an in-memory level. They need the prepared client -//! resources (`HORIZON_RESOURCES`, or `.local/horizon-client/26.3` at the +//! resources (`HORIZON_RESOURCES`, or `.local/horizon-client/` at the //! repository root) and are skipped when those are absent. use super::*; use crate::chunk::BlockState;