From 0567321fa95ce8f179eceda3fce342ba82727d37 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 25 Jan 2015 20:11:04 +0100 Subject: [PATCH] Fixed /from_hell nether's command - Fixed crash when *pos* was called. --- mods/nether/nether/portal.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/nether/nether/portal.lua b/mods/nether/nether/portal.lua index 1e8c72fa..96ee613b 100644 --- a/mods/nether/nether/portal.lua +++ b/mods/nether/nether/portal.lua @@ -142,7 +142,13 @@ minetest.register_chatcommand("from_hell", { end minetest.chat_send_player(pname, "You are free now") player_from_nether(player) - player:moveto({x=pos.x, y=100, z=pos.z}) + local pos_togo = {x = 0, y = 35, z = -7} + if minetest.setting_getbool("static_spawnpoint") ~= nil then + local 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 + table.foreach(pos_togo,print) + player:moveto(pos_togo) return true end })