Show portnumber for ip adresses only
authorsapier <Sapier at GMX dot net>
Mon, 22 Jul 2013 20:53:37 +0000 (22:53 +0200)
committerPilzAdam <pilzadam@minetest.net>
Thu, 25 Jul 2013 10:58:14 +0000 (12:58 +0200)
builtin/mainmenu.lua

index 18e82f4998c37b1e89757ae1b457969d75f78dae..febf1984a352fd3510e896dcf8b58e0a5f77c1e6 100644 (file)
@@ -34,15 +34,13 @@ function menu.render_favorite(spec,render_details)
        else
                if spec.address ~= nil then
                        text = text .. spec.address:trim()
+                       
+                       if spec.port ~= nil then
+                               text = text .. ":" .. spec.port
+                       end
                end
        end
        
-       if spec.port ~= nil and
-               spec.port ~= 30000 then
-               
-               text = text .. ":" .. spec.port
-       end
-       
        if not render_details then
                return text
        end