Skip to content

Commit 6dedc8e

Browse files
committed
remove fix
1 parent c06badb commit 6dedc8e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

lua/autorun/client/!dynamic-light-controller-entities.yue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,18 @@ do
124124

125125
Add( "EntityRemoved", addonName, ( entity, fullUpdate ) ->
126126
dlight = entity.__dlight
127-
if dlight and dlight\IsValid!
128-
dlight\Remove!
127+
if dlight
128+
if dlight\IsValid!
129+
dlight\Remove!
130+
131+
entity.__dlight = nil
132+
133+
dlight = entity.m_eFireDLight
134+
if dlight
135+
if dlight\IsValid!
136+
dlight\Remove!
137+
138+
entity.m_eFireDLight = nil
129139

130140
PRE_HOOK )
131141

0 commit comments

Comments
 (0)