Skip to content

Commit

Permalink
reload savefile on pref assosciation (tgstation#78984)
Browse files Browse the repository at this point in the history
## 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
  • Loading branch information
ZephyrTFA authored Oct 16, 2023
1 parent 9fbc3b1 commit 1d69843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d69843

Please sign in to comment.