mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-25 09:30: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
|
if id > HI_COMPONENT_ID then
|
||||||
error("Too many components")
|
error("Too many components")
|
||||||
end
|
end
|
||||||
return id
|
world.nextId = id
|
||||||
|
return id + REST
|
||||||
end
|
end
|
||||||
|
|
||||||
function World.entity(world: World)
|
function World.entity(world: World)
|
||||||
|
|
Loading…
Reference in a new issue