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:
Zephyr
2023-10-16 22:17:10 +02:00
committed by GitHub
parent 9fbc3b1b43
commit 1d698431fe
+1
View File
@@ -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)