Fix default_biome air node bug

main 1.0.0
Bram van den Heuvel 2024-09-12 18:22:01 +02:00
parent cae90a06c4
commit 14cc75a48d
1 changed files with 5 additions and 1 deletions

View File

@ -619,7 +619,11 @@ function internal.write_classified_node(vm_data, va, used_biomes, classified_nod
local default_biome = internal.default_biome() local default_biome = internal.default_biome()
local biome_to_id = {} local biome_to_id = {}
biome_to_id[default_biome.name] = default_biome[biome_key] or "" if default_biome[biome_key] == nil then
biome_to_id[default_biome.name] = ""
else
biome_to_id[default_biome.name] = minetest.get_content_id(default_biome[biome_key])
end
for _, i in ipairs(classified_nodes) do for _, i in ipairs(classified_nodes) do
local pos = small_va:position(i) local pos = small_va:position(i)