13
0
geforkt von Mirrors/Paper

Initialize hostname on handshake. Fixes BUKKIT-4793

This restores a lost CraftBukkit diff that initializes the hostname
field used during login events.
Dieser Commit ist enthalten in:
Wesley Wolfe 2013-09-20 09:13:48 -05:00
Ursprung dcb9d6a5ef
Commit 90e8aa008a

Datei anzeigen

@ -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!");