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