Skip to content

Commit

Permalink
change ultrawarm to be required
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Jan 10, 2025
1 parent 9e728dc commit 5364d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azalea-core/src/registry_holder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub struct DimensionTypeElement {
pub struct DimensionTypeElement {
pub height: u32,
pub min_y: i32,
pub ultrawarm: Option<u8>,
pub ultrawarm: u8,
#[simdnbt(flatten)]
pub _extra: HashMap<String, NbtTag>,
}
Expand Down
2 changes: 1 addition & 1 deletion azalea-physics/src/fluids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn update_in_water_state_and_do_fluid_pushing(
let is_ultrawarm = world
.registries
.dimension_type()
.and_then(|d| d.map.get(instance_name).and_then(|d| d.ultrawarm))
.and_then(|d| d.map.get(instance_name).map(|d| d.ultrawarm))
== Some(1);

Check failure on line 38 in azalea-physics/src/fluids.rs

View workflow job for this annotation

GitHub Actions / clippy

mismatched types

error[E0308]: mismatched types --> azalea-physics/src/fluids.rs:38:21 | 38 | == Some(1); | ---- ^ expected `bool`, found integer | | | arguments to this enum variant are incorrect | help: the type constructed contains `{integer}` due to the type of the argument passed --> azalea-physics/src/fluids.rs:38:16 | 38 | == Some(1); | ^^^^^-^ | | | this argument influences the type of `Some` note: tuple variant defined here --> /rustc/824759493246ee383beb9cd5ceffa0e15deb9fa4/library/core/src/option.rs:580:5
let lava_push_factor = if is_ultrawarm {
0.007
Expand Down

0 comments on commit 5364d4f

Please sign in to comment.