diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-09 13:29:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 13:29:59 -0600 |
| commit | 26d619c9a329087a23d6577ee74bd764f50cd773 (patch) | |
| tree | 8020fe902257764a23a445c6ed9987ea4848189d /azalea-physics/src | |
| parent | 84cd261118c9d1e3145d4d1751c0d22098cd8cd8 (diff) | |
| download | azalea-drasl-26d619c9a329087a23d6577ee74bd764f50cd773.tar.xz | |
Enchantments (#286)
* start implementing enchants
* store parsed registries
* more work on enchants
* implement deserializer for some entity effects
* mostly working definitions for enchants
* fix tests
* detect equipment changes
* fix errors
* update changelog
* fix some imports
* remove outdated todo
* add basic test for enchants applying attributes
* use git simdnbt
Diffstat (limited to 'azalea-physics/src')
| -rw-r--r-- | azalea-physics/src/fluids.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index 01ffe75f..3675ca3e 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -4,7 +4,6 @@ use azalea_block::{ }; use azalea_core::{ direction::Direction, - identifier::Identifier, position::{BlockPos, Vec3}, }; use azalea_entity::{HasClientLoaded, LocalEntity, Physics, Position}; @@ -39,12 +38,10 @@ pub fn update_in_water_state_and_do_fluid_pushing( let is_ultrawarm = world .registries + .dimension_type .map - .get(&Identifier::new("minecraft:dimension_type")) - .and_then(|d| { - d.get(&**instance_name) - .map(|d| d.byte("ultrawarm") != Some(0)) - }) + .get(&**instance_name) + .and_then(|i| i.ultrawarm) .unwrap_or_default(); let lava_push_factor = if is_ultrawarm { 0.007 |
