From 3ceb2b0a4d26ab02bd46fd3c66321dc325a696d0 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 25 Feb 2021 03:30:34 +0400 Subject: [PATCH] Fix https://git.minetest.land/MineClone2/MineClone2/issues/1160 --- mods/PLAYER/mcl_spawn/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/PLAYER/mcl_spawn/init.lua b/mods/PLAYER/mcl_spawn/init.lua index 5a4f3d634..6a3d543d3 100644 --- a/mods/PLAYER/mcl_spawn/init.lua +++ b/mods/PLAYER/mcl_spawn/init.lua @@ -386,6 +386,10 @@ end mcl_spawn.get_world_spawn_pos = function() + local ssp = minetest.setting_get_pos("static_spawnpoint") + if ssp then + return ssp + end if success then return wsp end