Use generalized iteration everywhere

Closes #55
This commit is contained in:
centauri 2025-09-02 03:12:19 +01:00
parent a469094328
commit 9ace23470f
4 changed files with 7 additions and 7 deletions

View file

@ -47,7 +47,7 @@ local function update_children_effect(p: {
cur_children_set[child] = nil -- remove child from cache if it was already in cache
end
elseif type(child) == "table" then
for _, child in next, child do
for _, child in child do
process_child(child)
end
elseif type(child) == "function" then
@ -70,7 +70,7 @@ local function update_children_effect(p: {
process_child(new_children)
for child in next, cur_children_set do
for child in cur_children_set do
child.Parent = nil -- unparent all children that weren't in the new children set
end