mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
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:
1 parent
dcb9d6a5ef
commit
90e8aa008a
1 file changed
+1
@@ -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!");
|
||||
|
||||
Reference in new issue
Block a user