Skip to content

Commit

Permalink
Get new system name in replaceSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
jackTabsCode committed Nov 10, 2024
1 parent 56f0660 commit 40c98bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Loop.luau
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ function Loop:replaceSystem(old: System, new: System)
self._systemState[new] = self._systemState[old] or {}
self._systemState[old] = nil

systemNames[new] = systemName(new)
systemNames[old] = nil

if self._skipSystems[old] then
self._skipSystems[old] = nil
self._skipSystems[new] = true
Expand Down

0 comments on commit 40c98bf

Please sign in to comment.