mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01: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:
parent
dcb9d6a5ef
commit
90e8aa008a
1 changed files with 1 additions and 0 deletions
|
@ -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!");
|
||||
|
|
Loading…
Reference in a new issue