Skip to content

Commit

Permalink
Fix metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Jun 27, 2024
1 parent 11e993d commit d940d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion poi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local update_formspec = function(meta)
local name = meta:get_string("name")
local icon = meta:get_string("icon") or "home"
local url = meta:get_string("url") or ""
local image = meta:get_string("image") or ""

meta:set_string("infotext", "POI, name:" .. name .. ", icon:" .. icon)

Expand All @@ -18,7 +19,7 @@ local update_formspec = function(meta)
"field[0.2,2;8,1;url;URL;" .. url .. "]" ..

-- col 3
"field[0.2,3;8,1;image;Image;" .. url .. "]" ..
"field[0.2,3;8,1;image;Image;" .. image .. "]" ..

-- col 4
"button_exit[0,4;8,1;save;Save]" ..
Expand Down

0 comments on commit d940d3c

Please sign in to comment.