fix default_state

This commit is contained in:
Alexander Medvedev 2025-06-25 22:05:57 +02:00
parent 6d2803db4b
commit bed8d5419d
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ impl PumpkinBlock for FlowerbedBlock {
if !(block_below.is_tagged_with("minecraft:dirt").unwrap()
|| block_below == Block::FARMLAND)
{
return Block::AIR.default_state_id;
return Block::AIR.default_state.id;
}
}
state

View File

@ -102,7 +102,7 @@ impl PumpkinBlock for LeafLitterBlock {
if direction == BlockDirection::Down {
let block_below_state = world.get_block_state(&pos.down()).await;
if !block_below_state.is_side_solid(BlockDirection::Up) {
return Block::AIR.default_state_id;
return Block::AIR.default_state.id;
}
}
state