diff --git a/addons/ob.luau b/addons/ob.luau index 151738b..9f57593 100755 --- a/addons/ob.luau +++ b/addons/ob.luau @@ -146,12 +146,13 @@ local function monitors_new( 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