diff options
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 |
