mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
parent
55478f6953
commit
fcaa2c4ce1
1 changed files with 8 additions and 5 deletions
|
@ -1018,9 +1018,12 @@ function mcl_util.check_position_protection(position, player)
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_util.get_registered_biome_from_pos(pos)
|
function mcl_util.get_registered_biome_from_pos(pos)
|
||||||
|
local mg_name = minetest.get_mapgen_setting("mg_name")
|
||||||
|
if mg_name ~= "v6" and mg_name ~= "singlenode" then
|
||||||
local biome_data = minetest.get_biome_data(pos)
|
local biome_data = minetest.get_biome_data(pos)
|
||||||
local biome = biome_data.biome
|
local biome = biome_data.biome
|
||||||
local biome_name = minetest.get_biome_name(biome)
|
local biome_name = minetest.get_biome_name(biome)
|
||||||
local reg_biome = minetest.registered_biomes[biome_name]
|
local reg_biome = minetest.registered_biomes[biome_name]
|
||||||
return reg_biome
|
return reg_biome
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue