From 706f09de43b4f0318659069e69906332d1381b8c Mon Sep 17 00:00:00 2001 From: T6751 <66636084+T6751@users.noreply.github.com> Date: Thu, 26 Dec 2024 05:51:46 +0300 Subject: [PATCH] favorite_interactions final fix --- .../code/modules/interactions/interaction_menu_granter.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modular_zzplurt/code/modules/interactions/interaction_menu_granter.dm b/modular_zzplurt/code/modules/interactions/interaction_menu_granter.dm index 0aa4336027302..9f2c4bde5d36f 100644 --- a/modular_zzplurt/code/modules/interactions/interaction_menu_granter.dm +++ b/modular_zzplurt/code/modules/interactions/interaction_menu_granter.dm @@ -504,10 +504,10 @@ var/datum/interaction/interaction = SSinteractions.interactions[params["interaction"]] if(interaction) var/datum/preferences/prefs = parent_mob.client.prefs - if(interaction.type in prefs.favorite_interactions) - LAZYREMOVE(prefs.favorite_interactions, interaction.type) + if(params["interaction"] in prefs.favorite_interactions) + LAZYREMOVE(prefs.favorite_interactions, params["interaction"]) else - LAZYADD(prefs.favorite_interactions, interaction.type) + LAZYADD(prefs.favorite_interactions, params["interaction"]) prefs.save_preferences() return TRUE return FALSE