Skip to content

Commit

Permalink
favorite_interactions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
T6751 committed Dec 26, 2024
1 parent 045bb97 commit 1e9859b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modular_zzplurt/code/modules/interactions/erp_preferences.dm
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 1e9859b

Please sign in to comment.