Don't assert default biomes in spawn mod

fixes #3124
This commit is contained in:
sfan5 2024-09-08 22:07:20 +02:00 committed by GitHub
parent 2ce8ff3306
commit 7967f77f3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,10 @@ end
for _, name in ipairs({ for _, name in ipairs({
"taiga", "coniferous_forest", "deciduous_forest", "grassland", "savanna" "taiga", "coniferous_forest", "deciduous_forest", "grassland", "savanna"
}) do }) do
spawn.add_suitable_biome(name) local id = minetest.get_biome_id(name)
if id then
biome_ids[id] = true
end
end end
-- End of parameters -- End of parameters