From baf5614880edca12174fb79ac3bf172e0bf0366c Mon Sep 17 00:00:00 2001 From: sapier Date: Mon, 15 Jul 2013 22:56:53 +0200 Subject: Add port to favorites if not 30000 Major modmgr overhaul Add missing formspec checkbox doc --- builtin/mainmenu.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'builtin/mainmenu.lua') diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua index 91084c2c6..726ccf7d0 100644 --- a/builtin/mainmenu.lua +++ b/builtin/mainmenu.lua @@ -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 -- cgit v1.2.3