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-physics/src/fluids.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-physics/src/fluids.rs')
| -rw-r--r-- | azalea-physics/src/fluids.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index 3675ca3e..fa6a1586 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -7,6 +7,7 @@ use azalea_core::{ position::{BlockPos, Vec3}, }; use azalea_entity::{HasClientLoaded, LocalEntity, Physics, Position}; +use azalea_registry::builtin::BlockKind; use azalea_world::{Instance, InstanceContainer, InstanceName}; use bevy_ecs::prelude::*; @@ -255,11 +256,11 @@ fn is_solid_face( if direction == Direction::Up { return true; } - let registry_block = azalea_registry::Block::from(block_state); + let registry_block = BlockKind::from(block_state); if matches!( registry_block, // frosted ice is from frost walker - azalea_registry::Block::Ice | azalea_registry::Block::FrostedIce + BlockKind::Ice | BlockKind::FrostedIce ) { return false; } |
