Rings no longer fall off when unequipping gloves (#16700)

This commit is contained in:
Doxxmedearly
2023-07-11 19:24:38 -04:00
committed by GitHub
parent 2a0c4e34b5
commit ac29328ee9
2 changed files with 6 additions and 3 deletions

View File

@@ -506,9 +506,8 @@
var/mob/living/carbon/human/H = wearer
if(ring && istype(H))
if(!H.equip_to_slot_if_possible(ring, slot_gloves))
ring.forceMove(get_turf(src))
src.ring = null
H.equip_to_slot(ring, slot_gloves)
ring = null
wearer = null
/obj/item/clothing/gloves/dropped()