From ec4f44f137ce717fc91c5f64af5dc378ece6eca8 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Sat, 8 Oct 2022 17:33:56 -0400 Subject: [PATCH] Fixes lighting overlays from an item sometimes showing up on inventory slots / backpack slots instead of from the mob holding them. (#70250) Fixes lighting overlays sometimes showing in inventory slots / backpack slots instead of the mob holding them --- code/datums/components/overlay_lighting.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/overlay_lighting.dm b/code/datums/components/overlay_lighting.dm index b799e7891d7..a6e531a4b15 100644 --- a/code/datums/components/overlay_lighting.dm +++ b/code/datums/components/overlay_lighting.dm @@ -448,7 +448,7 @@ if(current_holder) remove_dynamic_lumi() overlay_lighting_flags &= ~LIGHTING_ON - if(current_holder) + if(current_holder && current_holder != parent && current_holder != parent_attached_to) UnregisterSignal(current_holder, COMSIG_MOVABLE_MOVED) clean_old_turfs()