Skip to content

Commit

Permalink
Merge pull request #43 from BF3RM/rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
IllustrisJack authored Feb 26, 2023
2 parents 1f2eecd + 9d812a0 commit 2bff30c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/Client/VisualEnvironmentHandler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ function VisualEnvironmentHandler:RegisterVars()
self._Lerping = {}
end

function VisualEnvironmentHandler:OnLevelDestroy()
self:RegisterVars()
end

---@param p_ID string
---@param p_Object table<VisualEnvironmentObject>
function VisualEnvironmentHandler:RegisterVisualEnvironmentObject(p_ID, p_Object)
Expand Down
1 change: 1 addition & 0 deletions ext/Client/__init__.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ end

function VEManagerClient:_OnLevelDestroy()
self:RegisterVars()
m_VisualEnvironmentHandler:OnLevelDestroy()
collectgarbage('collect')
end

Expand Down

0 comments on commit 2bff30c

Please sign in to comment.