1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-10 19:35:12 -05:00

Add missing server flags in public serverlist

This commit is contained in:
sapier 2013-07-12 21:56:42 +02:00 committed by PilzAdam
parent 494fa0c81a
commit 38bc38cd88

View File

@ -30,30 +30,31 @@ function render_favourite(spec)
local details = "" local details = ""
if spec.password == true then if spec.password == true then
details = " *" details = details .. "*"
else else
details = " " details = details .. "_"
end end
if spec.creative then if spec.creative then
details = details .. "C" details = details .. "C"
else else
details = details .. " " details = details .. "_"
end end
if spec.damage then if spec.damage then
details = details .. "D" details = details .. "D"
else else
details = details .. " " details = details .. "_"
end end
if spec.pvp then if spec.pvp then
details = details .. "P" details = details .. "P"
else else
details = details .. " " details = details .. "_"
end end
details = details .. " "
return text return fs_escape_string(details) .. text
end end
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------