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;