mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user