fix suit modifications not being saved
This commit is contained in:
parent
b1b2ed5f34
commit
56bab3f526
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue