mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
Runtime fix due to Vox nitro tanks
This commit is contained in:
+10
-9
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user