mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Fix /datum/ui_state/greyscale_menu_state for non-atom datums (#81310)
## About The Pull Request `can_use_topic` returns a UI define like `UI_INTERACTIVE`, not `TRUE` / `FALSE` This line is intended to allow greyscale menus to be used when targeting non-atoms, however it prevents that entirely. #77322 ## Changelog Not necessary since _we_ don't have any GAGS menu usage that targets a datum... currently.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user