Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
Fix light respawn issues on localPlayer int/dim change
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikjuvonen committed Aug 22, 2021
1 parent 15d54ae commit 79a6d79
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions c_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ local function createLight(element)
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", lightMatrix[source])
end

lightMatrix[source] = nil
end
end)

Expand All @@ -74,8 +72,6 @@ local function createLight(element)
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", lightMatrix[source])
end

lightMatrix[source] = nil
end
end)
end
Expand Down Expand Up @@ -153,8 +149,6 @@ local function createLight(element)
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", source)
end

lightMatrix[getElementParent(source)] = nil
end)

addEventHandler("onClientElementInteriorChange", lightMatrix[element], function (_, newInterior)
Expand All @@ -166,8 +160,6 @@ local function createLight(element)
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", source)
end

lightMatrix[getElementParent(source)] = nil
end)
end
end
Expand Down Expand Up @@ -208,8 +200,6 @@ addEventHandler("onClientElementDimensionChange", localPlayer, function (_, newD
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", source)
end

lightMatrix[element] = nil
end
end
end)
Expand All @@ -224,8 +214,6 @@ addEventHandler("onClientElementInteriorChange", localPlayer, function (_, newIn
else
call(getResourceFromName("dl_lightmanager"), "destroyLight", source)
end

lightMatrix[element] = nil
end
end
end)

0 comments on commit 79a6d79

Please sign in to comment.