mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Show portnumber for ip adresses only
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user