mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.registered_biomes
This commit is contained in:
parent
96c34d369e
commit
14eab22d81
1 changed files with 7 additions and 0 deletions
|
@ -223,6 +223,13 @@ function minetest.register_alias(name, convert_to)
|
||||||
end
|
end
|
||||||
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
|
-- Alias the forbidden item names to "" so they can't be
|
||||||
-- created via itemstrings (e.g. /give)
|
-- created via itemstrings (e.g. /give)
|
||||||
local name
|
local name
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue