diff options
author | paramat <paramat@users.noreply.github.com> | 2018-03-09 23:16:23 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-03-11 23:06:17 +0000 |
commit | 7ad6cdd09b55197a25f9af34ad807813eab6247b (patch) | |
tree | 08ee5c4a7fe31172eee7459e31ad97c3fb4c656d /src/script/lua_api/l_mapgen.h | |
parent | a09a994417a6971313296aa31ef9090636058822 (diff) | |
download | minetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.tar.gz minetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.tar.bz2 minetest-7ad6cdd09b55197a25f9af34ad807813eab6247b.zip |
Biome API: Add 'get_biome_name(biome_id)' API
Change name of default biome to a more suitable lowercase 'default'.
Diffstat (limited to 'src/script/lua_api/l_mapgen.h')
-rw-r--r-- | src/script/lua_api/l_mapgen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/lua_api/l_mapgen.h b/src/script/lua_api/l_mapgen.h index aebbcbac6..1339791f3 100644 --- a/src/script/lua_api/l_mapgen.h +++ b/src/script/lua_api/l_mapgen.h @@ -28,6 +28,10 @@ private: // returns the biome id as used in biomemap and returned by 'get_biome_data()' static int l_get_biome_id(lua_State *L); + // get_biome_name(biome_id) + // returns the biome name string + static int l_get_biome_name(lua_State *L); + // get_heat(pos) // returns the heat at the position static int l_get_heat(lua_State *L); |