Fix prefs lipstick runtime (#90066)

## About The Pull Request

Classic case of "this accepts a datum not a typepath". 

Though weirdly it works anyways, likely because it's modifying the list
in place
This commit is contained in:
MrMelbert
2025-03-17 02:06:17 +01:00
committed by GitHub
parent a69d58d78a
commit f144a82319
+2 -2
View File
@@ -96,7 +96,7 @@
their_loadout = manager.preferences.read_preference(/datum/preference/loadout) // after sleep: sanity check
if(their_loadout?[item_path]) // Validate they still have it equipped
their_loadout[item_path][INFO_LAYER] = chosen
manager.preferences.update_preference(/datum/preference/loadout, their_loadout)
manager.preferences.update_preference(GLOB.preference_entries[/datum/preference/loadout], their_loadout)
return TRUE // Update UI
if("select_lipstick_color")
@@ -106,7 +106,7 @@
their_loadout = manager.preferences.read_preference(/datum/preference/loadout) // after sleep: sanity check
if(their_loadout?[item_path]) // Validate they still have it equipped
their_loadout[item_path][INFO_GREYSCALE] = chosen
manager.preferences.update_preference(/datum/preference/loadout, their_loadout)
manager.preferences.update_preference(GLOB.preference_entries[/datum/preference/loadout], their_loadout)
return TRUE // Update UI
return ..()