From 1d698431fe3864637af20041f78da9c6f77bc7f3 Mon Sep 17 00:00:00 2001 From: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:17:10 -0400 Subject: [PATCH] reload savefile on pref assosciation (#78984) ## About The Pull Request Tells the preferences datum to reload the savefile when we associate to an already existing one ## Why It's Good For The Game This trolled me locally for a good hour wondering "why aren't my prefs updating when I swap out the file" ## Changelog --- code/modules/client/client_procs.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index e6b94c20ede..77240be2b60 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -266,6 +266,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( prefs = GLOB.preferences_datums[ckey] if(prefs) prefs.parent = src + prefs.load_savefile() // just to make sure we have the latest data prefs.apply_all_client_preferences() else prefs = new /datum/preferences(src)