Revert "Close storage UI when item becomes inaccessible (#14536)" (#15126)

This reverts commit f54b6904b9.
This commit is contained in:
variableundefined
2020-12-16 17:20:07 -05:00
committed by GitHub
parent 8cb3571a9c
commit f029dd1dfc
7 changed files with 2 additions and 31 deletions
+2 -4
View File
@@ -103,8 +103,8 @@
to_chat(user, "You can't place that item inside the disposal unit.")
return
var/obj/item/storage/S = I
if(istype(S))
if(istype(I, /obj/item/storage))
var/obj/item/storage/S = I
if((S.allow_quick_empty || S.allow_quick_gather) && S.contents.len)
S.hide_from(user)
user.visible_message("[user] empties \the [S] into \the [src].", "You empty \the [S] into \the [src].")
@@ -134,8 +134,6 @@
if(!user.drop_item())
return
if(I)
if(istype(S))
S.hide_from_all()
I.forceMove(src)
to_chat(user, "You place \the [I] into the [src].")