fix app.* functions & update 'world' test

This commit is contained in:
MihailRis
2025-01-01 18:25:30 +03:00
parent 4a6689104a
commit 30a8ddf2d3
5 changed files with 81 additions and 41 deletions
+4
View File
@@ -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")