Use old interface
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run

This commit is contained in:
Ukendio 2025-07-14 00:47:20 +02:00
parent 9ae32bcce8
commit a6ae67250c

View file

@ -34,13 +34,10 @@ export type PatchedWorld = jecs.World & {
local function observers_new(
world: PatchedWorld,
description: {
query: any,
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
}
query: any,
callback: (<T, a>(jecs.Entity<T>, jecs.Id<a>, value: a?) -> ())?
)
local query = description.query:cached()
local callback = description.callback
query = query:cached()
local archetypes = {}
local terms = query.ids