mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add missing server flags in public serverlist
This commit is contained in:
parent
494fa0c81a
commit
38bc38cd88
1 changed files with 7 additions and 6 deletions
|
@ -30,30 +30,31 @@ function render_favourite(spec)
|
|||
|
||||
local details = ""
|
||||
if spec.password == true then
|
||||
details = " *"
|
||||
details = details .. "*"
|
||||
else
|
||||
details = " "
|
||||
details = details .. "_"
|
||||
end
|
||||
|
||||
if spec.creative then
|
||||
details = details .. "C"
|
||||
else
|
||||
details = details .. " "
|
||||
details = details .. "_"
|
||||
end
|
||||
|
||||
if spec.damage then
|
||||
details = details .. "D"
|
||||
else
|
||||
details = details .. " "
|
||||
details = details .. "_"
|
||||
end
|
||||
|
||||
if spec.pvp then
|
||||
details = details .. "P"
|
||||
else
|
||||
details = details .. " "
|
||||
details = details .. "_"
|
||||
end
|
||||
details = details .. " "
|
||||
|
||||
return text
|
||||
return fs_escape_string(details) .. text
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue