From e706b328ca876f17e15b3a28e3d96c9da7498e84 Mon Sep 17 00:00:00 2001 From: SandPoot Date: Sun, 5 May 2024 20:02:50 -0300 Subject: [PATCH] push --- code/modules/clothing/head/misc_special.dm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/code/modules/clothing/head/misc_special.dm b/code/modules/clothing/head/misc_special.dm index d9a6f70a0c..9a0cbcc805 100644 --- a/code/modules/clothing/head/misc_special.dm +++ b/code/modules/clothing/head/misc_special.dm @@ -149,15 +149,16 @@ beepsky_fashion = /datum/beepsky_fashion/cat /obj/item/clothing/head/kitty/equipped(mob/living/carbon/human/user, slot) - if(ishuman(user) && slot == ITEM_SLOT_HEAD) - update_icon(user) - user.update_inv_head() //Color might have been changed by update_icon. ..() + if(ishuman(user) && slot == ITEM_SLOT_HEAD) + update_icon() + user.update_inv_head() //Color might have been changed by update_icon. -/obj/item/clothing/head/kitty/update_icon(mob/living/carbon/human/user) +/obj/item/clothing/head/kitty/update_icon() . = ..() - if(ishuman(user)) - add_atom_colour("#[user.hair_color]", FIXED_COLOUR_PRIORITY) + if(ishuman(loc)) + var/mob/living/carbon/human/wearer = loc + add_atom_colour("#[wearer.hair_color]", FIXED_COLOUR_PRIORITY) /obj/item/clothing/head/kitty/genuine desc = "A pair of kitty ears. A tag on the inside says \"Hand made from real cats.\""