mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Fix issue #2278, Connection sent before address data loading
This commit is contained in:
parent
7880ff74b6
commit
346652a809
1 changed files with 3 additions and 2 deletions
|
@ -198,8 +198,9 @@ local function main_button_handler(tabview, fields, name, tabdata)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if fields["btn_mp_connect"] ~= nil or
|
if (fields["btn_mp_connect"] ~= nil or
|
||||||
fields["key_enter"] ~= nil then
|
fields["key_enter"] ~= nil) and fields["te_address"] ~= nil and
|
||||||
|
fields["te_port"] ~= nil then
|
||||||
|
|
||||||
gamedata.playername = fields["te_name"]
|
gamedata.playername = fields["te_name"]
|
||||||
gamedata.password = fields["te_pwd"]
|
gamedata.password = fields["te_pwd"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue