From 82ff5491a671609bbd22042bc5e714e01acc354c Mon Sep 17 00:00:00 2001 From: yuni Date: Tue, 9 Jul 2024 02:41:50 +0200 Subject: [PATCH] bevy14: Fix error with multiplying color by float --- src/cmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd.rs b/src/cmd.rs index f863c05..179bb0f 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -925,7 +925,7 @@ fn spawn_entities( if state.is_sun { let (r, g, b) = nature::star_color_index_to_rgb(0.656); actor.insert(materials.add(StandardMaterial { - base_color: Color::srgb(r, g, b) * 13.0, + base_color: Color::srgb(r * 13.0, g * 13.0, b * 13.0), unlit: true, ..default() }));