Removes preference datum caching

This commit is contained in:
AffectedArc07
2021-09-08 14:25:31 +01:00
parent afd01ecfe1
commit fa6787f8d4
3 changed files with 3 additions and 12 deletions
@@ -28,9 +28,4 @@
return query
/datum/client_login_processor/load_preferences/process_result(datum/db_query/Q, client/C)
C.prefs = GLOB.preferences_datums[C.ckey]
if(!C.prefs)
C.prefs = new /datum/preferences(C, Q)
GLOB.preferences_datums[C.ckey] = C.prefs
else
C.prefs.parent = C
C.prefs = new /datum/preferences(C, Q)
@@ -1,6 +1,3 @@
GLOBAL_LIST_EMPTY(preferences_datums)
GLOBAL_PROTECT(preferences_datums) // These feel like something that shouldnt be fucked with
GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts to play these roles
ROLE_PAI = 0,
ROLE_POSIBRAIN = 0,