mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
Close storage UI when item becomes inaccessible (#14536)
* add hide_from_all to storage objects, to call by something once it's locked/close * lockers call hide_from_all on stored storage items * secure storage calls hide_from_all on lock * throwing storage closes it * adding storage to a disposal chute closes it * adding storage to a crate closes it * adding storage to the destructive analyzer closes it
This commit is contained in:
@@ -103,6 +103,9 @@
|
||||
if(!I.anchored)
|
||||
I.forceMove(src)
|
||||
itemcount++
|
||||
if(istype(I, /obj/item/storage))
|
||||
var/obj/item/storage/S = I
|
||||
S.hide_from_all()
|
||||
|
||||
for(var/mob/M in loc)
|
||||
if(itemcount >= storage_capacity)
|
||||
|
||||
@@ -81,6 +81,9 @@
|
||||
continue
|
||||
O.forceMove(src)
|
||||
itemcount++
|
||||
if(istype(O, /obj/item/storage))
|
||||
var/obj/item/storage/S = O
|
||||
S.hide_from_all()
|
||||
|
||||
icon_state = icon_closed
|
||||
src.opened = FALSE
|
||||
|
||||
Reference in New Issue
Block a user