mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-09-13 21:55:04 +07:00
chunk(...) must accept at least one fragment
This commit is contained in:
+1
-1
@@ -619,7 +619,7 @@ basics.describe_bench(string.format('create and destroy %d entities / spawn_at',
|
||||
local fragments = {}
|
||||
local components = {}
|
||||
|
||||
local chunk = evo.chunk()
|
||||
local chunk = nil
|
||||
|
||||
for i = 1, N do
|
||||
entities[i] = spawn_at(chunk, fragments, components)
|
||||
|
||||
@@ -647,11 +647,6 @@ do
|
||||
assert(evo.insert(e2b, f1, 44))
|
||||
assert(evo.insert(e2b, f2, 45))
|
||||
|
||||
do
|
||||
local chunk, entities = evo.chunk()
|
||||
assert(not chunk and not entities)
|
||||
end
|
||||
|
||||
do
|
||||
local chunk, entities = evo.chunk(f1)
|
||||
assert(entities and entities[1] == e1)
|
||||
|
||||
Reference in New Issue
Block a user