1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Add port to favorites if not 30000

Major modmgr overhaul
Add missing formspec checkbox doc
This commit is contained in:
sapier 2013-07-15 22:56:53 +02:00 committed by PilzAdam
parent 868f35e27a
commit baf5614880
5 changed files with 424 additions and 280 deletions

View file

@ -2,6 +2,11 @@ os.setlocale("C", "numeric")
local scriptpath = engine.get_scriptdir()
mt_color_grey = "#AAAAAA"
mt_color_blue = "#0000DD"
mt_color_green = "#00DD00"
mt_color_dark_green = "#003300"
dofile(scriptpath .. DIR_DELIM .. "mainmenu_worldlist.lua")
dofile(scriptpath .. DIR_DELIM .. "modmgr.lua")
dofile(scriptpath .. DIR_DELIM .. "modstore.lua")
@ -29,6 +34,12 @@ function render_favourite(spec,render_details)
end
end
if spec.port ~= nil and
spec.port ~= 30000 then
text = text .. ":" .. spec.port
end
if not render_details then
return text
end