Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Handle skipSystems in replace loop
Browse files Browse the repository at this point in the history
  • Loading branch information
evaera committed Jun 30, 2022
1 parent 2af8e23 commit 54f7bcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Loop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ function Loop:replaceSystem(old: System, new: System)
self._systemState[new] = self._systemState[old] or {}
self._systemState[old] = nil

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

for system in self._systems do
if type(system) == "table" and system.after then
local index = table.find(system.after, old)
Expand Down

0 comments on commit 54f7bcc

Please sign in to comment.