Restore port to the hostname. Fixes BUKKIT-2124

This commit is contained in:
Wesley Wolfe 2012-08-08 06:58:08 -05:00
parent 24809ef986
commit 25fe93479f
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class NetLoginHandler extends NetHandler {
public void a(Packet2Handshake packet2handshake) { public void a(Packet2Handshake packet2handshake) {
// CraftBukkit start // CraftBukkit start
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c; this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d;
// CraftBukkit end // CraftBukkit end
this.h = packet2handshake.f(); this.h = packet2handshake.f();
if (!this.h.equals(StripColor.a(this.h))) { if (!this.h.equals(StripColor.a(this.h))) {

View File

@ -10,7 +10,7 @@ public class Packet2Handshake extends Packet {
private int a; private int a;
private String b; private String b;
public String c; // CraftBukkit private -> public public String c; // CraftBukkit private -> public
private int d; public int d; // CraftBukkit private -> public
public Packet2Handshake() {} public Packet2Handshake() {}