mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 01:12:47 +01:00
Attempt to fix double disconnects
This commit is contained in:
parent
131a2c769b
commit
54a05f3ce2
1 changed files with 5 additions and 3 deletions
|
@ -545,9 +545,11 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void a(String s, Object[] aobject) {
|
public void a(String s, Object[] aobject) {
|
||||||
|
if (!this.c) {
|
||||||
a.info(this.e.name + " lost connection: " + s);
|
a.info(this.e.name + " lost connection: " + s);
|
||||||
this.d.f.a((Packet) (new Packet3Chat("\u00A7e" + this.e.name + " left the game.")));
|
this.d.f.a((Packet) (new Packet3Chat("\u00A7e" + this.e.name + " left the game.")));
|
||||||
this.d.f.c(this.e);
|
this.d.f.c(this.e);
|
||||||
|
}
|
||||||
this.c = true;
|
this.c = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue