Initialize hostname on handshake. Fixes BUKKIT-4793

This restores a lost CraftBukkit diff that initializes the hostname
field used during login events.
This commit is contained in:
Wesley Wolfe 2013-09-20 09:13:48 -05:00
parent dcb9d6a5ef
commit 90e8aa008a

View file

@ -65,6 +65,7 @@ public class PendingConnection extends Connection {
if (this.g != null) {
this.disconnect("Quit repeating yourself!");
} else {
this.hostname = packet2handshake.c + ':' + packet2handshake.d; // CraftBukkit - initialize field
this.g = packet2handshake.f();
if (!this.g.equals(StripColor.a(this.g))) {
this.disconnect("Invalid username!");