fix default_state
This commit is contained in:
1 parent
6d2803db4b
commit
bed8d5419d
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user