fix indents
This commit is contained in:
parent
20019a3d3e
commit
374d5a9e5a
12
init.lua
12
init.lua
|
@ -256,17 +256,15 @@ local function prepare_dropdown(x,y,w,h,curr_dest)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function prepare_formspec(dest)
|
local function prepare_formspec(dest)
|
||||||
local custdest
|
local custdest = ""
|
||||||
if not lookup_warp(dest) then
|
if not lookup_warp(dest) then
|
||||||
custdest = dest
|
custdest = dest
|
||||||
else
|
|
||||||
custdest = ""
|
|
||||||
end
|
end
|
||||||
return "size[4.5,3]label[0.7,0;Warp destination]"
|
return "size[4.5,3]label[0.7,0;Warp destination]"
|
||||||
.."field[1,2.2;3,0.2;destination;Future destination;"
|
.."field[1,2.2;3,0.2;destination;Future destination;"
|
||||||
..minetest.formspec_escape(custdest).."]"
|
..minetest.formspec_escape(custdest).."]"
|
||||||
.."button_exit[0.7,2.7;3,0.5;proceed;Proceed]"
|
.."button_exit[0.7,2.7;3,0.5;proceed;Proceed]"
|
||||||
..prepare_dropdown(0.7,0.4,3,1, dest)
|
..prepare_dropdown(0.7,0.4,3,1, dest)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("warps:warpstone", {
|
minetest.register_node("warps:warpstone", {
|
||||||
|
|
Loading…
Reference in New Issue