[MIRROR] Fixes mob_holders not going into storage (#1669)

* Fixes mob_holders not going into storage (#54837)

#53305 made it so clothing objects without an icon_state on initialize were given ABSTRACT flags.

unfortunately for mob_holder objs, they gained their icon after that step of initialization.

this PR just moves the parent call to after the icon_state is updated, preventing them from incorrectly gaining the abstract flag.

Fixes #53872

* Fixes mob_holders not going into storage

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-11-11 02:51:01 +00:00
committed by GitHub
co-authored by MrMelbert
parent 36b8086d62
commit 176a45b280
+1 -1
View File
@@ -10,7 +10,6 @@
var/destroying = FALSE
/obj/item/clothing/head/mob_holder/Initialize(mapload, mob/living/M, worn_state, head_icon, lh_icon, rh_icon, worn_slot_flags = NONE)
. = ..()
if(head_icon)
worn_icon = head_icon
if(worn_state)
@@ -22,6 +21,7 @@
if(worn_slot_flags)
slot_flags = worn_slot_flags
deposit(M)
. = ..()
/obj/item/clothing/head/mob_holder/Destroy()
destroying = TRUE