Skip to content

Commit

Permalink
favorite_interactions final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
T6751 committed Dec 26, 2024
1 parent 1e9859b commit 706f09d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 706f09d

Please sign in to comment.