[MIRROR] Fixing client eye (#11812)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-10-12 22:44:25 -04:00
committed by GitHub
co-authored by Will Cameron Lennox
parent b9db7ed21f
commit 7d57273375
95 changed files with 762 additions and 710 deletions
+7 -1
View File
@@ -4,7 +4,7 @@
* Previously there was a system where COMSIG_OBSERVER_MOVE was always recursively propogated, but that was unnecessary bloat.
*/
/datum/component/recursive_move
dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS //This makes it so pretty much nothing happens when a duplicate component is created since we don't actually override InheritComponent
dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS //This makes it so pretty much nothing happens when a duplicate component is created since we only use it to regenerate our parent list
var/atom/movable/holder
var/list/parents = list()
var/noparents = FALSE
@@ -17,6 +17,12 @@
if(!QDELETED(src))
setup_parents()
/datum/component/recursive_move/InheritComponent(datum/component/recursive_move/C, i_am_original)
if(!i_am_original)
return
reset_parents()
setup_parents()
/datum/component/recursive_move/proc/setup_parents()
SIGNAL_HANDLER
if(length(parents)) // safety check just incase this was called without clearing