mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Update init.lua
This commit is contained in:
parent
275aa6ec6d
commit
74d0651d9c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue