mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
move Chunks from Level to Player
This commit is contained in:
parent
b7664b4188
commit
1c18c02092
40 changed files with 450 additions and 220 deletions
|
|
@ -5,11 +5,9 @@ test.reconfig_packs({"base"}, {})
|
|||
test.new_world("demo", "2019", "core:default")
|
||||
local pid = player.create("Xerxes")
|
||||
assert(player.get_name(pid) == "Xerxes")
|
||||
test.sleep_until(function() return world.count_chunks() >= 9 end, 1000)
|
||||
test.sleep_until(function() return block.get(0, 0, 0) >= 0 end, 1000)
|
||||
print(world.count_chunks())
|
||||
|
||||
timeit(10000000, block.get, 0, 0, 0)
|
||||
|
||||
block.destruct(0, 0, 0, pid)
|
||||
assert(block.get(0, 0, 0) == 0)
|
||||
test.close_world(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue