diff options
author | Novatux <nathanael.courant@laposte.net> | 2013-08-05 09:50:41 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-08-06 13:24:54 +0200 |
commit | 14eab22d814040fdaf05e7070ef1775560ed788a (patch) | |
tree | 89633d14dfb86dc17c05c7861ec69c75ad72ae2b | |
parent | 96c34d369e71e25299eccc1527ae5463ea5219e3 (diff) | |
download | minetest-14eab22d814040fdaf05e7070ef1775560ed788a.tar.gz minetest-14eab22d814040fdaf05e7070ef1775560ed788a.tar.bz2 minetest-14eab22d814040fdaf05e7070ef1775560ed788a.zip |
Add minetest.registered_biomes
-rw-r--r-- | builtin/misc_register.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/misc_register.lua b/builtin/misc_register.lua index d5e086702..f1d816124 100644 --- a/builtin/misc_register.lua +++ b/builtin/misc_register.lua @@ -223,6 +223,13 @@ function minetest.register_alias(name, convert_to) end end +local register_biome_raw = minetest.register_biome +minetest.registered_biomes = {} +function minetest.register_biome(biome) + minetest.registered_biomes[biome.name] = biome + register_biome_raw(biome) +end + -- Alias the forbidden item names to "" so they can't be -- created via itemstrings (e.g. /give) local name |