mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
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:
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user