From 7967f77f3bad62be3c9e586b72f257f3ad0003d9 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 8 Sep 2024 22:07:20 +0200 Subject: [PATCH] Don't assert default biomes in spawn mod fixes #3124 --- mods/spawn/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/spawn/init.lua b/mods/spawn/init.lua index df30a25e..b439997f 100644 --- a/mods/spawn/init.lua +++ b/mods/spawn/init.lua @@ -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