Fix improperly initialized usernames

This commit is contained in:
Wesley Wolfe 2013-09-02 16:51:14 -05:00
parent cd593fb1ee
commit 5c861fe864

View file

@ -63,6 +63,9 @@ public class PendingConnection extends Connection {
public void a(Packet2Handshake packet2handshake) { public void a(Packet2Handshake packet2handshake) {
// CraftBukkit start // CraftBukkit start
if (this.g != null) {
this.disconnect("Invalid username " + this.g);
}
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d; this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d;
// CraftBukkit end // CraftBukkit end
this.g = packet2handshake.f(); this.g = packet2handshake.f();