mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 09:35:30 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user