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