mirror of
https://github.com/Skyrat-SS13/Skyrat-tg.git
synced 2026-08-30 00:07:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user