Fix a bug related to storage transfer. (#31353)

This commit is contained in:
Alan
2025-12-26 05:52:17 +00:00
committed by GitHub
parent b211866196
commit 58ce2e0d05
@@ -103,7 +103,7 @@
return TRUE
/obj/item/storage/proc/dump_storage(mob/user, obj/item/storage/target)
if(!length(contents) || user.restrained() || (HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) || !user.can_reach(target) || src == target)
if(!length(contents) || user.restrained() || (HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) || !user.can_reach(target) || !user.can_reach(src) || src == target)
return
for(var/obj/item/thing in contents)
if(!target.can_be_inserted(thing))