From 1d4a5541240044773cc4cdd59b83e70f5e424332 Mon Sep 17 00:00:00 2001 From: Farie82 Date: Tue, 15 Mar 2022 11:36:32 +0100 Subject: [PATCH] Transforming species as a cling now properly handles dropping items. Fixing cling blades laying on the floor (#17483) --- code/modules/mob/living/carbon/human/human.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index c48124568a2..5ddd2c3100a 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1360,8 +1360,10 @@ dna.species.create_organs(src) for(var/obj/item/thing in kept_items) - equip_to_slot_if_possible(thing, kept_items[thing]) + var/equipped = equip_to_slot_if_possible(thing, kept_items[thing]) thing.flags = item_flags[thing] // Reset the flags to the origional ones + if(!equipped) + thing.dropped() // Ensures items know they are dropped. Using their original flags //Handle default hair/head accessories for created mobs. var/obj/item/organ/external/head/H = get_organ("head")