From f144a823190c2c3dbb8b6285c424c764f8d29201 Mon Sep 17 00:00:00 2001 From: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Date: Sun, 16 Mar 2025 20:06:17 -0500 Subject: [PATCH] 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 --- code/modules/loadout/categories/pocket.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/loadout/categories/pocket.dm b/code/modules/loadout/categories/pocket.dm index a06b2d65efa..b9be93aec20 100644 --- a/code/modules/loadout/categories/pocket.dm +++ b/code/modules/loadout/categories/pocket.dm @@ -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 ..()