Compare commits
2 Commits
2595af2d48
...
c3610c47c9
| Author | SHA1 | Date | |
|---|---|---|---|
| c3610c47c9 | |||
| 08ed9b46b1 |
@@ -44,7 +44,7 @@ public class MultiMenu extends BaseView {
|
||||
ImGui.inputText("Pseudo", pseudo);
|
||||
if (ImGui.button("Rejoindre")) {
|
||||
try {
|
||||
this.stateMachine.pushState(new ConnexionStatusView(stateMachine, address.get(), (short) port.get()));
|
||||
this.stateMachine.pushState(new ConnexionStatusView(stateMachine, pseudo.get(), address.get(), (short) port.get()));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ public class ClientConnexion extends Connexion {
|
||||
public void close() {
|
||||
if (!this.isClosed()) {
|
||||
super.close();
|
||||
sendPacket(new DisconnectPacket(""));
|
||||
client.onDisconnect.emit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user