Fix - Bodybag tags don't disappear when opening/closing the bags. (#17164)

This commit is contained in:
Vi3trice
2021-11-28 03:40:09 -05:00
committed by GitHub
parent 4356dc746f
commit fa275ffe74
+5 -1
View File
@@ -35,7 +35,7 @@
return
cut_overlays()
if(t)
add_overlay(image(icon, "bodybag_label"))
add_overlay("bodybag_label")
return
if(istype(I, /obj/item/wirecutters))
to_chat(user, "<span class='notice'>You cut the tag off the bodybag.</span>")
@@ -53,6 +53,10 @@
return TRUE
return FALSE
/obj/structure/closet/body_bag/update_overlays()
..()
if(name != initial(name))
add_overlay("bodybag_label")
/obj/structure/closet/body_bag/MouseDrop(over_object, src_location, over_location)
. = ..()