mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-27 18:30:03 +00:00
Remove appending to array
This commit is contained in:
parent
5b31a1af22
commit
5b9c032451
1 changed files with 0 additions and 1 deletions
|
@ -116,7 +116,6 @@ local function observers_add(world: jecs.World & { [string]: any }): PatchedWorl
|
||||||
end
|
end
|
||||||
world:set(component, jecs.OnAdd, on_add)
|
world:set(component, jecs.OnAdd, on_add)
|
||||||
end
|
end
|
||||||
table.insert(listeners, fn)
|
|
||||||
listeners[max] = fn
|
listeners[max] = fn
|
||||||
return function()
|
return function()
|
||||||
local n = #listeners
|
local n = #listeners
|
||||||
|
|
Loading…
Reference in a new issue