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 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-17 00:35:45 +02:00
parent b324ee7e3a
commit 2e2645ba9d
@@ -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)