Runtime fix due to Vox nitro tanks

This commit is contained in:
ZomgPonies
2014-06-16 22:56:30 -04:00
parent 2263375b10
commit cd3a972331
+10 -9
View File
@@ -149,17 +149,18 @@
/mob/living/carbon/human/proc/equip_or_collect(var/obj/item/W, var/slot)
if(!equip_to_slot_or_del(W, slot))
// Do I have a backpack?
var/obj/item/weapon/storage/B = back
// Do I have a plastic bag?
if(!B)
var/obj/item/weapon/storage/B
if(istype(back,/obj/item/weapon/storage))
B = back
// Do I have a plastic bag?
else
B=is_in_hands(/obj/item/weapon/storage/bag/plasticbag)
if(!B)
// Gimme one.
B=new /obj/item/weapon/storage/bag/plasticbag(null) // Null in case of failed equip.
if(!put_in_hands(B,slot_back))
return // Fuck it
if(!B)
// Gimme one.
B=new /obj/item/weapon/storage/bag/plasticbag(null) // Null in case of failed equip.
if(!put_in_hands(B,slot_back))
return // Fuck it
B.handle_item_insertion(W,1)