Skip to content

Commit

Permalink
[MIRROR] Fix /datum/ui_state/greyscale_menu_state for non-atom datu…
Browse files Browse the repository at this point in the history
…ms (#1833)

* Fix `/datum/ui_state/greyscale_menu_state` for non-atom datums (#81310)

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: MrMelbert <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2024
1 parent b9f6eec commit 8059899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/tgui/states/greyscale_menu.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ GLOBAL_DATUM_INIT(greyscale_menu_state, /datum/ui_state/greyscale_menu_state, ne
/datum/ui_state/greyscale_menu_state/can_use_topic(src_object, mob/user)
var/datum/greyscale_modify_menu/menu = src_object
if(!isatom(menu.target))
return TRUE
return UI_INTERACTIVE

return GLOB.default_state.can_use_topic(menu.target, user)

0 comments on commit 8059899

Please sign in to comment.