Skip to content
Snippets Groups Projects
Unverified Commit 4d4b9269 authored by Buckaroo Banzai's avatar Buckaroo Banzai Committed by GitHub
Browse files

fix mismatched teleport/waypoint selection

parent a3e6096a
No related branches found
No related tags found
No related merge requests found
......@@ -91,8 +91,8 @@ local function show_formspec(playername, data)
return a.distance < b.distance
end)
-- store as last result
search_results[playername] = data
-- data to store as last result
local last_result_data = {}
-- render list items
for _, item in ipairs(data) do
......@@ -140,6 +140,10 @@ local function show_formspec(playername, data)
item.description = description
if add_to_list then
-- result data
table.insert(last_result_data, item)
-- formspec data
list = list .. "," ..
color .. "," ..
distance .. "," ..
......@@ -150,6 +154,9 @@ local function show_formspec(playername, data)
end
-- store filtered result data
search_results[playername] = last_result_data
list = list .. ";]"
local teleport_button = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment