diff --git a/mods/nether/nether/portal.lua b/mods/nether/nether/portal.lua index 49fe196f..59493662 100644 --- a/mods/nether/nether/portal.lua +++ b/mods/nether/nether/portal.lua @@ -522,7 +522,12 @@ function nether_port(player, pos) minetest.sound_play("nether_teleporter", {pos=pos}) if pos.y < nether.start then player_from_nether(player) - player:moveto({x=5, y=35, z=-7}) + local pos_togo = {x = 0, y = 35, z = -7} + if minetest.setting_getbool("static_spawnpoint") ~= nil then + stsp_conf = minetest.setting_get("static_spawnpoint") + pos_togo = {x = stsp_conf:split(",")[1],y = stsp_conf:split(",")[2],z = stsp_conf:split(",")[3]} + end + player:moveto(pos_togo) else player:moveto({x=pos.x, y=portal_target+math.random(4), z=pos.z}) player_to_nether(player, true)