Update init.lua

This commit is contained in:
Shane 2024-04-30 15:08:53 -07:00 committed by GitHub
parent 275aa6ec6d
commit 74d0651d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -525,7 +525,8 @@ function World.component(world: World)
if id > HI_COMPONENT_ID then
error("Too many components")
end
return id
world.nextId = id
return id + REST
end
function World.entity(world: World)