aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-world/src')
-rw-r--r--azalea-world/src/heightmap.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea-world/src/heightmap.rs b/azalea-world/src/heightmap.rs
index 12aaa159..c38f3edc 100644
--- a/azalea-world/src/heightmap.rs
+++ b/azalea-world/src/heightmap.rs
@@ -32,7 +32,10 @@ fn blocks_motion(block_state: BlockState) -> bool {
fn motion_blocking(block_state: BlockState) -> bool {
// TODO
- !block_state.is_air() || block_state.waterlogged()
+ !block_state.is_air()
+ || block_state
+ .property::<azalea_block::properties::Waterlogged>()
+ .unwrap_or_default()
}
impl HeightmapKind {