mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Menu: Fix starting a server if the server address is an empty string. (#5742)
Minetest uses an empty string internal to signal that a server should be started.
This commit is contained in:
parent
071e114ffa
commit
441740e021
1 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,8 @@ local function main_button_handler(tabview, fields, name, tabdata)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if (fields.btn_mp_connect or fields.key_enter) and fields.te_address and fields.te_port then
|
if (fields.btn_mp_connect or fields.key_enter)
|
||||||
|
and fields.te_address ~= "" and fields.te_port then
|
||||||
gamedata.playername = fields.te_name
|
gamedata.playername = fields.te_name
|
||||||
gamedata.password = fields.te_pwd
|
gamedata.password = fields.te_pwd
|
||||||
gamedata.address = fields.te_address
|
gamedata.address = fields.te_address
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue