mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Show portnumber for ip adresses only
This commit is contained in:
parent
a59f85c1a0
commit
215e37aac3
@ -34,15 +34,13 @@ function menu.render_favorite(spec,render_details)
|
|||||||
else
|
else
|
||||||
if spec.address ~= nil then
|
if spec.address ~= nil then
|
||||||
text = text .. spec.address:trim()
|
text = text .. spec.address:trim()
|
||||||
|
|
||||||
|
if spec.port ~= nil then
|
||||||
|
text = text .. ":" .. spec.port
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if spec.port ~= nil and
|
|
||||||
spec.port ~= 30000 then
|
|
||||||
|
|
||||||
text = text .. ":" .. spec.port
|
|
||||||
end
|
|
||||||
|
|
||||||
if not render_details then
|
if not render_details then
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user