Revert "nil return for getSmallestMap() (#5)"

This reverts commit 12287b12ef.
This commit is contained in:
Marcus 2024-04-30 16:10:07 +02:00 committed by GitHub
parent 12287b12ef
commit c0b710d2c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -194,7 +194,7 @@ local function onNotifyAdd(world, archetype, otherArchetype, row: number, added:
end
export type World = typeof(World.new())
type World = typeof(World.new())
local function ensureArchetype(world: World, types, prev)
if #types < 1 then
@ -360,7 +360,7 @@ local function getSmallestMap(componentIndex, components)
end
end
return s and s.sparse or nil
return s.sparse
end
function World.query(world: World, ...: i53): any
@ -581,4 +581,4 @@ return table.freeze({
ON_ADD = ON_ADD,
ON_REMOVE = ON_REMOVE,
ON_SET = ON_SET
})
})