From c0b710d2c22f3072fca98504fb3036ae99cac686 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 30 Apr 2024 16:10:07 +0200 Subject: [PATCH] Revert "nil return for getSmallestMap() (#5)" This reverts commit 12287b12ef27a34e9a4516110f6c3951ced21e21. --- lib/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/init.lua b/lib/init.lua index 26ac04b..a3642de 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -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 -}) +}) \ No newline at end of file