Fix from_hell and timeonline

- Forced cast of x,y and z into numbers
master
LeMagnesium 2015-06-22 21:01:26 +02:00
parent d81604be1a
commit c2223d1f95
1 changed files with 1 additions and 1 deletions

View File

@ -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