Template
2
0
Fork 0
mirror of https://github.com/luanti-org/minetest_game.git synced 2025-03-15 12:21:24 +00:00

Don't assert default biomes in spawn mod

fixes 
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