mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Chemmaster and chemdispenser UI disables if the machine is not operable (#20101)
Chemmaster and chemdispenser UI disables if the machine is not operable. Turned a comment into a DMDoc. Fixes #19825
This commit is contained in:
@@ -299,6 +299,11 @@
|
||||
return TRUE
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/chem_master/ui_status(mob/user, datum/ui_state/state)
|
||||
if(!operable())
|
||||
return UI_DISABLED
|
||||
|
||||
. = ..()
|
||||
|
||||
|
||||
/obj/machinery/chem_master/Topic(href, href_list)
|
||||
|
||||
@@ -202,6 +202,12 @@
|
||||
|
||||
add_fingerprint(usr)
|
||||
|
||||
/obj/machinery/chemical_dispenser/ui_status(mob/user, datum/ui_state/state)
|
||||
if(!operable())
|
||||
return UI_DISABLED
|
||||
|
||||
. = ..()
|
||||
|
||||
/obj/machinery/chemical_dispenser/attack_ai(mob/user as mob)
|
||||
if(!ai_can_interact(user))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user