From 26d619c9a329087a23d6577ee74bd764f50cd773 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 9 Dec 2025 13:29:59 -0600 Subject: 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 --- azalea-physics/src/fluids.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'azalea-physics/src') 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 -- cgit v1.2.3