1
0
Fork 0

Fix mcl_util.get_registered_biome_from_pos(pos)

Adds something which was missing from the function.
This commit is contained in:
FossFanatic 2023-02-14 08:12:55 +00:00
parent aeddb7675f
commit 7b7e213925
1 changed files with 2 additions and 1 deletions

View File

@ -1018,6 +1018,7 @@ 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 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