From 32cf25dc17ac0df52c0a5533c86d535b521a20f8 Mon Sep 17 00:00:00 2001 From: kay27 Date: Wed, 3 Feb 2021 03:53:47 +0400 Subject: [PATCH] Fix spawn point search --- mods/PLAYER/mcl_spawn/init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/PLAYER/mcl_spawn/init.lua b/mods/PLAYER/mcl_spawn/init.lua index a3a461f7d..5baa461f6 100644 --- a/mods/PLAYER/mcl_spawn/init.lua +++ b/mods/PLAYER/mcl_spawn/init.lua @@ -425,13 +425,13 @@ end minetest.register_on_respawnplayer(mcl_spawn.spawn) function mcl_spawn.shadow_worker() - if #biome_ids > 1 then - for _, biome_name in pairs(biomes_white_list) do - table.insert(biome_ids, minetest.get_biome_id(biome_name)) - end - end if not searched then searched = true + if #biome_ids < 1 then + for _, biome_name in pairs(biomes_white_list) do + table.insert(biome_ids, minetest.get_biome_id(biome_name)) + end + end mcl_spawn.search() minetest.log("action", "[mcl_spawn] Started world spawn point search") end