From: Novatux Date: Mon, 5 Aug 2013 07:50:41 +0000 (+0200) Subject: Add minetest.registered_biomes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=14eab22d814040fdaf05e7070ef1775560ed788a;p=zefram%2Fminetest%2Fminetest_engine.git Add minetest.registered_biomes --- diff --git a/builtin/misc_register.lua b/builtin/misc_register.lua index d5e08670..f1d81612 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