mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user