diff --git a/lib/Loop.lua b/lib/Loop.lua index c059cce..e73a2d2 100644 --- a/lib/Loop.lua +++ b/lib/Loop.lua @@ -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)