mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Fix mcl_util.get_registered_biome_from_pos(pos)
Adds something which was missing from the function.
This commit is contained in:
parent
aeddb7675f
commit
7b7e213925
@ -1018,11 +1018,12 @@ function mcl_util.check_position_protection(position, player)
|
||||
end
|
||||
|
||||
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 = biome_data.biome
|
||||
local biome_name = minetest.get_biome_name(biome)
|
||||
local reg_biome = minetest.registered_biomes[biome_name]
|
||||
return reg_biome
|
||||
return reg_biome
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user