diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-12 00:56:02 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 00:56:02 -0600 |
| commit | f9c25665c203d6377ace62f1e95381d037d8fd9e (patch) | |
| tree | 8b4131d20fe661d3cc1175ec27f801fe61df41ea /azalea-world/src/heightmap.rs | |
| parent | 82ad975242292d5875780b4398b62637674bf50a (diff) | |
| download | azalea-drasl-f9c25665c203d6377ace62f1e95381d037d8fd9e.tar.xz | |
Refactor azalea-registry (#294)
* move registries in azalea-registry into separate modules
* rename Item and Block to ItemKind and BlockKind
* remove 'extra' registries from azalea-registry
* hide deprecated items from docs
* use DamageKindKey instead of Identifier when parsing registries
* store tag entries as a Vec instead of a HashSet
* sort tag values by protocol id
* update changelog
Diffstat (limited to 'azalea-world/src/heightmap.rs')
| -rw-r--r-- | azalea-world/src/heightmap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-world/src/heightmap.rs b/azalea-world/src/heightmap.rs index d3b2b071..0f5e4c53 100644 --- a/azalea-world/src/heightmap.rs +++ b/azalea-world/src/heightmap.rs @@ -3,7 +3,7 @@ use std::{ str::FromStr, }; -use azalea_block::BlockState; +use azalea_block::{BlockState, BlockTrait}; use azalea_buf::AzBuf; use azalea_core::{math, position::ChunkBlockPos}; use azalea_registry::tags::blocks::LEAVES; @@ -45,7 +45,7 @@ fn motion_blocking(block_state: BlockState) -> bool { impl HeightmapKind { pub fn is_opaque(self, block_state: BlockState) -> bool { - let block = Box::<dyn azalea_block::BlockTrait>::from(block_state); + let block = Box::<dyn BlockTrait>::from(block_state); let registry_block = block.as_registry_block(); match self { HeightmapKind::WorldSurfaceWg => !block_state.is_air(), |
