Update code/modules/reagents/chemistry/machinery/chem_dispenser.dm

Co-authored-by: SabreML <57483089+SabreML@users.noreply.github.com>
This commit is contained in:
S34N
2021-09-25 21:24:38 +01:00
committed by GitHub
parent 9ce920bbbf
commit c0d9b0348b
@@ -320,13 +320,11 @@
ui_interact(user)
/obj/machinery/chem_dispenser/AltClick(mob/user)
if(!is_drink)
if(!is_drink || !Adjacent(user))
return
if(user.incapacitated())
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
return
if(!Adjacent(user))
return
if(anchored)
to_chat(user, "<span class='warning'>[src] is anchored to the floor!</span>")
return