From 56bab3f5262e4b51a47fe5700adff2432972f829 Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 22 Sep 2024 07:15:07 +0200 Subject: [PATCH] fix suit modifications not being saved --- src/menu.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/menu.rs b/src/menu.rs index 4c91c3c..ae4c783 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -625,6 +625,7 @@ pub fn handle_input( if prefs.light_amp > 3 { prefs.light_amp = 0; } + prefs.save(); ew_updateoverlays.send(hud::UpdateOverlayVisibility); ew_updatemenu.send(UpdateMenuEvent); } @@ -633,6 +634,7 @@ pub fn handle_input( if prefs.flashlight_power > 3 { prefs.flashlight_power = 0; } + prefs.save(); ew_game.send(GameEvent::UpdateFlashlight); ew_updatemenu.send(UpdateMenuEvent); } @@ -641,6 +643,7 @@ pub fn handle_input( if prefs.thruster_boost > 2 { prefs.thruster_boost = 0; } + prefs.save(); ew_updatemenu.send(UpdateMenuEvent); } MenuAction::ModReactor => {