From 9cce1aa7ba2d68ad5172afc4441f871b9fbdb2ea Mon Sep 17 00:00:00 2001 From: SandPoot Date: Mon, 4 Dec 2023 16:18:18 -0300 Subject: [PATCH] only update mob if wearing it --- .../code/modules/clothing/spacesuits/miscellaneous.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modular_sand/code/modules/clothing/spacesuits/miscellaneous.dm b/modular_sand/code/modules/clothing/spacesuits/miscellaneous.dm index 35a87a6b97..a3c74713e2 100644 --- a/modular_sand/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/modular_sand/code/modules/clothing/spacesuits/miscellaneous.dm @@ -21,7 +21,8 @@ /obj/item/clothing/head/helmet/space/rad/reskin_obj(mob/user) . = ..() - user.update_inv_head() + if(user.get_item_by_slot(ITEM_SLOT_HEAD) == src) + user.update_inv_head() /obj/item/clothing/suit/space/rad unique_reskin = list( @@ -47,4 +48,5 @@ /obj/item/clothing/suit/space/rad/reskin_obj(mob/user) . = ..() - user.update_inv_wear_suit() + if(user.get_item_by_slot(ITEM_SLOT_OCLOTHING) == src) + user.update_inv_wear_suit()