From ce43b84d99c33dae4cc169290e301d90b3209d1e Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 10 Jan 2025 09:44:06 +0000 Subject: [PATCH] fix for clippy --- azalea-core/src/registry_holder.rs | 2 +- azalea-physics/src/fluids.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azalea-core/src/registry_holder.rs b/azalea-core/src/registry_holder.rs index cf63efd8f..0d2588cff 100644 --- a/azalea-core/src/registry_holder.rs +++ b/azalea-core/src/registry_holder.rs @@ -161,7 +161,7 @@ pub struct DimensionTypeElement { pub struct DimensionTypeElement { pub height: u32, pub min_y: i32, - pub ultrawarm: u8, + pub ultrawarm: bool, #[simdnbt(flatten)] pub _extra: HashMap, } diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index e244ab662..eca4266e4 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -35,7 +35,7 @@ pub fn update_in_water_state_and_do_fluid_pushing( .registries .dimension_type() .and_then(|d| d.map.get(instance_name).map(|d| d.ultrawarm)) - == Some(1); + == Some(true); let lava_push_factor = if is_ultrawarm { 0.007 } else {