Fixed storages contents not updating in some cases.

This commit is contained in:
xxalpha
2015-05-18 23:39:09 +01:00
parent 46f2721cdf
commit dca4fbbefd
4 changed files with 34 additions and 7 deletions
+8 -3
View File
@@ -23,10 +23,15 @@
update_icon()
/obj/item/device/assembly_holder/proc/attach(var/obj/item/device/assembly/A, var/mob/user)
if(user)
user.remove_from_mob(A)
if(istype(A.loc,/obj/item/weapon/storage))
var/obj/item/weapon/storage/S = A.loc
S.remove_from_storage(A,src)
else
if(user)
user.remove_from_mob(A)
A.loc = src
A.holder = src
A.loc = src
A.toggle_secure()
if(!a_left)
a_left = A