diff --git a/main_game_lib/src/rscn/spawner.rs b/main_game_lib/src/rscn/spawner.rs index c6f77c7a..0e429672 100644 --- a/main_game_lib/src/rscn/spawner.rs +++ b/main_game_lib/src/rscn/spawner.rs @@ -267,8 +267,7 @@ fn node_to_entity( // default zindex is 0 as per Godot, but we use f32::EPSILON to avoid z // fighting between nested nodes (parent vs child) - let translation = - position.extend(virtual_z_index.unwrap_or_else(|| f32::EPSILON)); + let translation = position.extend(virtual_z_index.unwrap_or(f32::EPSILON)); let transform = Transform::from_translation(translation); cmd.entity(entity).insert(SpatialBundle { transform,