[MIRROR] Zipping a duffle bag closes UI of all storage items opened inside it [MDB IGNORE] (#23325)

* Zipping a duffle bag closes UI of all storage items opened inside it (#77886)

## About The Pull Request
Fixes #77885

zipping it now looks for storage items inside its contents and closes
their UI recursively, including its own UI as well.

## Changelog

🆑
fix: zipping a duffle bag closes the UI of all storage items opened
inside it
/🆑

* Zipping a duffle bag closes UI of all storage items opened inside it

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-08-26 04:38:37 +02:00
committed by GitHub
parent 1bd0a0741d
commit 7f852fd71b
+2 -1
View File
@@ -471,7 +471,8 @@
slowdown = initial(slowdown)
atom_storage.locked = STORAGE_SOFT_LOCKED
atom_storage.display_contents = FALSE
atom_storage.close_all()
for(var/obj/item/weapon as anything in get_all_contents_type(/obj/item)) //close ui of this and all items inside dufflebag
weapon.atom_storage?.close_all() //not everything has storage initialized
else
slowdown = zip_slowdown
atom_storage.locked = STORAGE_NOT_LOCKED