diff options
author | paramat <paramat@users.noreply.github.com> | 2018-03-07 03:40:35 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-03-10 03:38:27 +0000 |
commit | 644d0ab2bb44df8a3aefb387736930150b7d0aed (patch) | |
tree | 8201d4809b043615c26aaabb91b79d482ee7aac1 /src/script/lua_api/l_mapgen.h | |
parent | 473d81f2e2ad4b8077c9cfe241032c67d6a795c3 (diff) | |
download | hax-minetest-server-644d0ab2bb44df8a3aefb387736930150b7d0aed.tar.gz hax-minetest-server-644d0ab2bb44df8a3aefb387736930150b7d0aed.zip |
Spawn level: Add 'get_spawn_level(x, z)' API
Returns a suitable player spawn y co-ordinate for unmodified terrain.
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r-- | src/script/lua_api/l_mapgen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index 713069633..aebbcbac6 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -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); |