mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user