Skip to content

Commit 7967f77

Browse files
authored
Don't assert default biomes in spawn mod
fixes #3124
1 parent 2ce8ff3 commit 7967f77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mods/spawn/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ end
3636
for _, name in ipairs({
3737
"taiga", "coniferous_forest", "deciduous_forest", "grassland", "savanna"
3838
}) do
39-
spawn.add_suitable_biome(name)
39+
local id = minetest.get_biome_id(name)
40+
if id then
41+
biome_ids[id] = true
42+
end
4043
end
4144

4245
-- End of parameters

0 commit comments

Comments
 (0)