mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fixed /from_hell nether's command
- Fixed crash when *pos* was called.
This commit is contained in:
parent
6726dc3a8c
commit
0567321fa9
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user