Binoculars no longer runtime when unwielding with no one listening (#48440)

This commit is contained in:
oranges
2019-12-30 14:41:02 -05:00
committed by Jordan Brown
parent 8a43df470e
commit 98e3e11aa0
+3 -2
View File
@@ -843,8 +843,9 @@
/obj/item/twohanded/binoculars/unwield(mob/user)
. = ..()
UnregisterSignal(listeningTo, COMSIG_MOVABLE_MOVED)
listeningTo = null
if(listeningTo)
UnregisterSignal(listeningTo, COMSIG_MOVABLE_MOVED)
listeningTo = null
user.visible_message("<span class='notice'>[user] lowers [src].</span>", "<span class='notice'>You lower [src].</span>")
item_state = "binoculars"
user.regenerate_icons()