Remove appending to array

This commit is contained in:
Ukendio 2025-04-25 22:08:03 +02:00
parent 5b31a1af22
commit 5b9c032451

View file

@ -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