From 2e2645ba9dc289475380fc14531704a37d8fa845 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 17 Oct 2026 00:35:45 +0200 Subject: [PATCH] Fix main build: falling anvil wear reads blocks from self.pack #528 was tested before #537 moved the asset registry from Resources to the reloadable pack, so main stopped compiling after both merged. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/falling_damage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game/falling_damage.rs b/crates/horizon-client/src/game/falling_damage.rs index 313ddbaac..16a003c04 100644 --- a/crates/horizon-client/src/game/falling_damage.rs +++ b/crates/horizon-client/src/game/falling_damage.rs @@ -43,11 +43,11 @@ impl Game<'_> { if anvil && impact.wear_chance > 0.0 && self.world.random.next_float() < impact.wear_chance - && let Some(mut state) = self.res.assets.registry.state(block.state).cloned() + && let Some(mut state) = self.pack.assets.registry.state(block.state).cloned() { if falling_block::wear_anvil(&mut state) { block.state = self - .res + .pack .assets .registry .resolve(&state)