Merge pull request #15729 from Citadel-Station-13/silicons-patch-7

ports tg's fix to accessing storage in closed lockers
This commit is contained in:
Lin
2022-07-30 05:23:03 +00:00
committed by GitHub
@@ -156,9 +156,10 @@
for(var/atom/movable/AM in L)
if(AM != src && insert(AM) == -1) // limit reached
break
// for(var/i in reverseRange(L.GetAllContents()))
// var/atom/movable/thing = i
// SEND_SIGNAL(thing, COMSIG_TRY_STORAGE_HIDE_ALL)
// todo: this should be unnecessary, storage should auto close on move wtf
for(var/i in reverseRange(L.GetAllContents()))
var/atom/movable/thing = i
SEND_SIGNAL(thing, COMSIG_TRY_STORAGE_HIDE_ALL)
/obj/structure/closet/proc/open(mob/living/user, force = FALSE)
if(!can_open(user, force))