fix suit modifications not being saved

This commit is contained in:
yuni 2024-09-22 07:15:07 +02:00
parent b1b2ed5f34
commit 56bab3f526

View file

@ -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 => {