Fixed portable chem mixer spamming you if not held if not held while its UI is open (#85511)

## About The Pull Request

Closes #85510
Also uncapitalized its name while at it

## Changelog
🆑
fix: Fixed portable chem mixer spamming you if not held while its UI is
open
/🆑
This commit is contained in:
SmArtKar
2024-08-14 13:36:49 +02:00
committed by GitHub
parent 55202eaed2
commit cef7b1eec0
@@ -1,5 +1,5 @@
/obj/item/storage/portable_chem_mixer
name = "Portable Chemical Mixer"
name = "portable chemical mixer"
desc = "A portable device that dispenses and mixes chemicals using the beakers inserted inside."
icon = 'icons/obj/medical/chemical.dmi'
icon_state = "portablechemicalmixer_open"
@@ -132,10 +132,12 @@
return
beaker = new_beaker
/obj/item/storage/portable_chem_mixer/ui_interact(mob/user, datum/tgui/ui)
/obj/item/storage/portable_chem_mixer/ui_status(mob/user, datum/ui_state/state)
if(loc != user)
balloon_alert(user, "hold it in your hand!")
return
return UI_CLOSE
return ..()
/obj/item/storage/portable_chem_mixer/ui_interact(mob/user, datum/tgui/ui)
if(!atom_storage.locked)
balloon_alert(user, "lock it first!")
return