mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Show portnumber for ip adresses only
This commit is contained in:
parent
a59f85c1a0
commit
215e37aac3
1 changed files with 4 additions and 6 deletions
|
@ -34,14 +34,12 @@ 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()
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if spec.port ~= nil and
|
|
||||||
spec.port ~= 30000 then
|
|
||||||
|
|
||||||
|
if spec.port ~= nil then
|
||||||
text = text .. ":" .. spec.port
|
text = text .. ":" .. spec.port
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if not render_details then
|
if not render_details then
|
||||||
return text
|
return text
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue