Skip to content

Commit de8a28e

Browse files
committed
Correção ordenação de tarefas Update
1 parent e413f46 commit de8a28e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/shared/ECS.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--[[
2-
Roblox-ECS v1.2 [2020-12-05 20:03]
2+
Roblox-ECS v1.2.1 [2020-12-10 02:40]
33
44
Roblox-ECS is a tiny and easy to use ECS (Entity Component System) engine for
55
game development on the Roblox platform
@@ -1771,7 +1771,7 @@ local function NewExecutionPlan(world, systems)
17711771
-- systems that process the onRemove event
17721772
local onRemoveSystems = {}
17731773

1774-
for k, system in pairs(systems) do
1774+
for k, system in pairs(systems) do
17751775
if system.Update ~= nil then
17761776
if updateSteps[system.Step][system.Order] == nil then
17771777
updateSteps[system.Step][system.Order] = {}
@@ -1790,7 +1790,7 @@ local function NewExecutionPlan(world, systems)
17901790
end
17911791
end
17921792

1793-
for _, order in ipairs(updateStepsOrder) do
1793+
for _, order in pairs(updateStepsOrder) do
17941794
table.sort(order)
17951795
end
17961796

0 commit comments

Comments
 (0)