1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Spawn level: Add 'get_spawn_level(x, z)' API

Returns a suitable player spawn y co-ordinate for unmodified terrain.
This commit is contained in:
paramat 2018-03-07 03:40:35 +00:00 committed by paramat
parent 473d81f2e2
commit 644d0ab2bb
3 changed files with 34 additions and 0 deletions

View file

@ -44,6 +44,9 @@ private:
// returns the requested object used during map generation
static int l_get_mapgen_object(lua_State *L);
// get_spawn_level(x = num, z = num)
static int l_get_spawn_level(lua_State *L);
// get_mapgen_params()
// returns the currently active map generation parameter set
static int l_get_mapgen_params(lua_State *L);