From de48a7530e3c5ba490e764fde23c7f815f892515 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 13 Apr 2026 15:16:47 +0200 Subject: [PATCH] Add checks for background mode before updating night gradient and intensity --- src/app/App.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index cbc1d887..b113a40c 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3601,6 +3601,10 @@ export function App({ store, initialStatusMessage }: AppProps) { ? "Updated the night gradient top color." : "Updated the night gradient bottom color.", (world) => { + if (world.timeOfDay.night.background.mode !== "verticalGradient") { + return; + } + world.timeOfDay.night.background = edge === "top" ? { @@ -3625,6 +3629,10 @@ export function App({ store, initialStatusMessage }: AppProps) { "Set night background environment intensity", "Updated the night background environment intensity.", (world) => { + if (world.timeOfDay.night.background.mode !== "image") { + return; + } + world.timeOfDay.night.background = { ...world.timeOfDay.night.background, environmentIntensity: readNonNegativeNumberDraft(