Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mapserver_mod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Minetest
mapserver_mod
Commits
4d4b9269
Unverified
Commit
4d4b9269
authored
4 years ago
by
Buckaroo Banzai
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix mismatched teleport/waypoint selection
parent
a3e6096a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bridge/search.lua
+9
-2
9 additions, 2 deletions
bridge/search.lua
with
9 additions
and
2 deletions
bridge/search.lua
+
9
−
2
View file @
4d4b9269
...
...
@@ -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
=
""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment