From c2223d1f954d6656d880e47def0d74d918b414c6 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 22 Jun 2015 21:01:26 +0200 Subject: [PATCH] Fix from_hell and timeonline - Forced cast of x,y and z into numbers --- nether/portal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nether/portal.lua b/nether/portal.lua index 16671b2..98cb2c0 100755 --- a/nether/portal.lua +++ b/nether/portal.lua @@ -145,7 +145,7 @@ minetest.register_chatcommand("from_hell", { 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]} + pos_togo = {x = stsp_conf:split(",")[1]+0,y = stsp_conf:split(",")[2]+0,z = stsp_conf:split(",")[3]+0} end player:moveto(pos_togo) return true