mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix app.* functions & update 'world' test
This commit is contained in:
parent
4a6689104a
commit
30a8ddf2d3
5 changed files with 81 additions and 41 deletions
|
|
@ -1,6 +1,7 @@
|
|||
-- Create/close/open/close world
|
||||
|
||||
-- Open
|
||||
app.reconfig_packs({"base"}, {})
|
||||
app.new_world("demo", "2019", "core:default")
|
||||
assert(world.is_open())
|
||||
assert(world.get_generator() == "core:default")
|
||||
|
|
@ -18,6 +19,9 @@ assert(world.is_open())
|
|||
assert(world.get_total_time() > 0.0)
|
||||
assert(world.get_seed() == 2019)
|
||||
app.tick()
|
||||
app.reconfig_packs({}, {"base"})
|
||||
app.tick()
|
||||
|
||||
-- Close
|
||||
app.close_world(true)
|
||||
app.delete_world("demo")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue