diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-09-20 09:13:48 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-09-20 09:13:48 -0500 |
commit | 90e8aa008aa68c2ba5408f561e7cc69dcca90f55 (patch) | |
tree | c5b27209646496005f01fb8c87aec43430cc72db | |
parent | dcb9d6a5ef2d572b041696d5728f660aa8549e47 (diff) | |
download | craftbukkit-90e8aa008aa68c2ba5408f561e7cc69dcca90f55.tar craftbukkit-90e8aa008aa68c2ba5408f561e7cc69dcca90f55.tar.gz craftbukkit-90e8aa008aa68c2ba5408f561e7cc69dcca90f55.tar.lz craftbukkit-90e8aa008aa68c2ba5408f561e7cc69dcca90f55.tar.xz craftbukkit-90e8aa008aa68c2ba5408f561e7cc69dcca90f55.zip |
Initialize hostname on handshake. Fixes BUKKIT-4793
This restores a lost CraftBukkit diff that initializes the hostname
field used during login events.
-rw-r--r-- | src/main/java/net/minecraft/server/PendingConnection.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/PendingConnection.java b/src/main/java/net/minecraft/server/PendingConnection.java index 1bb77a9b..2a96168e 100644 --- a/src/main/java/net/minecraft/server/PendingConnection.java +++ b/src/main/java/net/minecraft/server/PendingConnection.java @@ -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!"); |