Revert "Ports Old Citcode Storage Reach" (#7184)

This commit is contained in:
Selis
2023-11-07 15:40:39 +01:00
committed by GitHub
parent c8ef96ff6f
commit e6932e98ba
4 changed files with 5 additions and 10 deletions

View File

@@ -27,7 +27,7 @@
//If it isn't on the floor. Do some checks to see if it's in our hands or a box. Otherwise give up.
if(istype(I.loc,/obj/item/weapon/storage)) //in a container.
var/sdepth = I.storage_depth(user)
if (sdepth > MAX_STORAGE_REACH) // CHOMPedit: Storage reach depth.
if (sdepth == -1 || sdepth > 1)
return //too deeply nested to access
var/obj/item/weapon/storage/U = I.loc