mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 07:46:20 +00:00
Ensures personalities are loaded before prefs are loaded (#93265)
## About The Pull Request Aaaaa if you load fast personalities aren't instantiated so personality loading wipes everything out. I don't know the best way to ensure personalities are loaded before anyone could load in unfortunately, so I just threw it in. Will need to ask around. ## Changelog 🆑 Melbert fix: Fixed personality wiping /🆑
This commit is contained in:
@@ -19,6 +19,9 @@ PROCESSING_SUBSYSTEM_DEF(personalities)
|
||||
|
||||
/// Initialized personality singletons
|
||||
/datum/controller/subsystem/processing/personalities/proc/init_personalities()
|
||||
if(length(personalities_by_type))
|
||||
return // Already initialized
|
||||
|
||||
personalities_by_type = list()
|
||||
personalities_by_key = list()
|
||||
incompatibilities_by_group = list()
|
||||
|
||||
@@ -20,6 +20,9 @@
|
||||
if(!LAZYLEN(input))
|
||||
return null
|
||||
|
||||
if(!SSpersonalities.initialized)
|
||||
SSpersonalities.init_personalities()
|
||||
|
||||
var/list/input_sanitized
|
||||
for(var/personality_key in input)
|
||||
var/datum/personality/personality = SSpersonalities.personalities_by_key[personality_key]
|
||||
|
||||
Reference in New Issue
Block a user