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
This commit is contained in:
ShizCalev
2022-10-08 23:33:56 +02:00
committed by GitHub
parent 29e9600753
commit ec4f44f137
+1 -1
View File
@@ -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()