mirror of
https://github.com/Ukendio/jecs.git
synced 2025-08-03 18:59:18 +00:00
Fix addons, monitor emplace should have EcsOnAdd
This commit is contained in:
parent
499afc20cd
commit
253febb820
1 changed files with 2 additions and 1 deletions
|
@ -146,12 +146,13 @@ local function monitors_new<T...>(
|
|||
entity_index, entity :: any) :: jecs.Record
|
||||
|
||||
local archetype = r.archetype
|
||||
local EcsOnAdd = jecs.OnAdd :: jecs.Id
|
||||
|
||||
if archetypes[archetype.id] then
|
||||
i += 1
|
||||
entities[i] = entity
|
||||
if callback ~= nil then
|
||||
callback(entity, id, value)
|
||||
callback(entity, EcsOnAdd, value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue