mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-04-19 02:14:26 +07:00
one new builder instead of three
This commit is contained in:
@@ -81,7 +81,7 @@ end
|
||||
|
||||
do
|
||||
local r = math.random(1, 2)
|
||||
local q = evo.query():include(__table_unpack(destroying_include_list)):build()
|
||||
local q = evo.builder():include(__table_unpack(destroying_include_list)):build()
|
||||
|
||||
if r == 1 then
|
||||
evo.batch_destroy(q)
|
||||
@@ -98,7 +98,7 @@ end
|
||||
---
|
||||
---
|
||||
|
||||
local all_chunk_query = evo.query():build()
|
||||
local all_chunk_query = evo.builder():build()
|
||||
|
||||
for chunk in evo.execute(all_chunk_query) do
|
||||
assert(not evo.has_any(chunk, __table_unpack(should_be_destroyed_entity_list)))
|
||||
|
||||
Reference in New Issue
Block a user