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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user