1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-15 22:40:19 +01:00

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({
"taiga", "coniferous_forest", "deciduous_forest", "grassland", "savanna"
}) do
spawn.add_suitable_biome(name)
local id = minetest.get_biome_id(name)
if id then
biome_ids[id] = true
end
end
-- End of parameters