Skip to content

Commit

Permalink
Fix type error on World.add in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio committed Nov 21, 2024
1 parent 78127d7 commit 59abdcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ if _G.__JECS_DEBUG then
world_set(world, entity, id, value)
end

World.add = function(world: World, entity: i53, id: i53, value: nil)
World.add = function(world: World, entity: i53, id: i53, value: any)
if value ~= nil then
local _1 = get_name(world, entity)
local _2 = get_name(world, id)
Expand Down

0 comments on commit 59abdcb

Please sign in to comment.