Skip to content

Commit

Permalink
tuple isnt optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Jul 2, 2024
1 parent 0256c76 commit 0f67cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ local function preparedQuery(compatibleArchetypes: { Archetype },
return setmetatable(query, query) :: any
end

function World.query(world: World, ...: number?): Query
function World.query(world: World, ...: number): Query
-- breaking?
if (...) == nil then
error("Missing components")
Expand All @@ -773,7 +773,7 @@ function World.query(world: World, ...: number?): Query
local compatibleArchetypes: { Archetype } = {}
local length = 0

local components: { number? } = { ... }
local components: { number } = { ... }
local archetypes: { Archetype } = world.archetypes :: any

local firstArchetypeMap: ArchetypeMap
Expand Down

0 comments on commit 0f67cb1

Please sign in to comment.