mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 18:57:39 +07:00
Fixed #4802
This commit is contained in:
parent
1bb97cae39
commit
8349c8a5b8
@ -66,6 +66,13 @@ public class NetClient implements ApplicationListener{
|
||||
|
||||
reset();
|
||||
|
||||
//connection after reset
|
||||
if(!net.client()){
|
||||
Log.info("Connection canceled.");
|
||||
disconnectQuietly();
|
||||
return;
|
||||
}
|
||||
|
||||
ui.loadfrag.hide();
|
||||
ui.loadfrag.show("@connecting.data");
|
||||
|
||||
|
@ -193,7 +193,7 @@ public class UnitType extends UnlockableContent{
|
||||
|
||||
if(unit.controller() instanceof LogicAI){
|
||||
table.row();
|
||||
table.add(Blocks.microProcessor.emoji() + " " + Core.bundle.get("units.processorcontrol")).growX().left();
|
||||
table.add(Blocks.microProcessor.emoji() + " " + Core.bundle.get("units.processorcontrol")).growX().wrap().left();
|
||||
table.row();
|
||||
table.label(() -> Iconc.settings + " " + (long)unit.flag + "").color(Color.lightGray).growX().wrap().left();
|
||||
}
|
||||
|
@ -463,8 +463,10 @@ public class JoinDialog extends BaseDialog{
|
||||
net.reset();
|
||||
Vars.netClient.beginConnecting();
|
||||
net.connect(lastIp = ip, lastPort = port, () -> {
|
||||
hide();
|
||||
add.hide();
|
||||
if(net.client()){
|
||||
hide();
|
||||
add.hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user