fix default_state
This commit is contained in:
parent
6d2803db4b
commit
bed8d5419d
@ -105,7 +105,7 @@ impl PumpkinBlock for FlowerbedBlock {
|
|||||||
if !(block_below.is_tagged_with("minecraft:dirt").unwrap()
|
if !(block_below.is_tagged_with("minecraft:dirt").unwrap()
|
||||||
|| block_below == Block::FARMLAND)
|
|| block_below == Block::FARMLAND)
|
||||||
{
|
{
|
||||||
return Block::AIR.default_state_id;
|
return Block::AIR.default_state.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
state
|
state
|
||||||
|
|||||||
@ -102,7 +102,7 @@ impl PumpkinBlock for LeafLitterBlock {
|
|||||||
if direction == BlockDirection::Down {
|
if direction == BlockDirection::Down {
|
||||||
let block_below_state = world.get_block_state(&pos.down()).await;
|
let block_below_state = world.get_block_state(&pos.down()).await;
|
||||||
if !block_below_state.is_side_solid(BlockDirection::Up) {
|
if !block_below_state.is_side_solid(BlockDirection::Up) {
|
||||||
return Block::AIR.default_state_id;
|
return Block::AIR.default_state.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
state
|
state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user