mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 07:08:55 +01:00
[MIRROR] Signal fixes (#12141)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
2a384412a4
commit
0c29c5df9a
@@ -98,7 +98,7 @@
|
||||
/obj/item/paper/sticky/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/recursive_move)
|
||||
RegisterSignal(src, COMSIG_MOVABLE_MOVED, /obj/item/paper/sticky/proc/reset_persistence_tracking)
|
||||
RegisterSignal(src, COMSIG_MOVABLE_ATTEMPTED_MOVE, /obj/item/paper/sticky/proc/reset_persistence_tracking)
|
||||
|
||||
/obj/item/paper/sticky/proc/reset_persistence_tracking()
|
||||
SIGNAL_HANDLER
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
/obj/item/paper/sticky/Destroy()
|
||||
reset_persistence_tracking()
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_MOVED)
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_ATTEMPTED_MOVE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/paper/sticky/update_icon()
|
||||
|
||||
Reference in New Issue
Block a user