From 1e9859b52d06e432fccdb52987049d8c461727cc Mon Sep 17 00:00:00 2001 From: T6751 <66636084+T6751@users.noreply.github.com> Date: Thu, 26 Dec 2024 05:24:10 +0300 Subject: [PATCH] favorite_interactions fix --- .../code/modules/interactions/erp_preferences.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modular_zzplurt/code/modules/interactions/erp_preferences.dm b/modular_zzplurt/code/modules/interactions/erp_preferences.dm index 2872284de44b2..b7001497847d2 100644 --- a/modular_zzplurt/code/modules/interactions/erp_preferences.dm +++ b/modular_zzplurt/code/modules/interactions/erp_preferences.dm @@ -1,14 +1,13 @@ /datum/preferences - var/list/favorite_interactions + var/list/favorite_interactions = list() -/datum/preferences/save_preferences(bypass_cooldown, silent) - . = ..() +/datum/preferences/save_preferences() if(!savefile) CRASH("Attempted to save the preferences of [parent] without a savefile. This should have been handled by load_preferences()") savefile.set_entry("favorite_interactions", favorite_interactions) - -/datum/preferences/load_preferences(bypass_cooldown) . = ..() + +/datum/preferences/load_preferences() if(!savefile) stack_trace("Attempted to load the preferences of [parent] without a savefile; did you forget to call load_savefile?") load_savefile() @@ -27,6 +26,7 @@ if(!initial(interaction_path.description)) LAZYREMOVE(favorite_interactions, interaction) continue + . = ..() /datum/preference/choiced/erp_status_extm category = PREFERENCE_CATEGORY_NON_CONTEXTUAL