From cef7b1eec0ad95f2c38bc43b92adfba8fb5fd0f8 Mon Sep 17 00:00:00 2001 From: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:36:49 +0300 Subject: [PATCH] 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 :cl: fix: Fixed portable chem mixer spamming you if not held while its UI is open /:cl: --- .../chemistry/machinery/portable_chem_mixer.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/modules/reagents/chemistry/machinery/portable_chem_mixer.dm b/code/modules/reagents/chemistry/machinery/portable_chem_mixer.dm index 9c92cc631be..21f23a209b6 100644 --- a/code/modules/reagents/chemistry/machinery/portable_chem_mixer.dm +++ b/code/modules/reagents/chemistry/machinery/portable_chem_mixer.dm @@ -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