mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Restore port to the hostname. Fixes BUKKIT-2124
This commit is contained in:
parent
24809ef986
commit
25fe93479f
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public class NetLoginHandler extends NetHandler {
|
|||
|
||||
public void a(Packet2Handshake packet2handshake) {
|
||||
// CraftBukkit start
|
||||
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c;
|
||||
this.hostname = packet2handshake.c == null ? "" : packet2handshake.c + ':' + packet2handshake.d;
|
||||
// CraftBukkit end
|
||||
this.h = packet2handshake.f();
|
||||
if (!this.h.equals(StripColor.a(this.h))) {
|
||||
|
|
|
@ -10,7 +10,7 @@ public class Packet2Handshake extends Packet {
|
|||
private int a;
|
||||
private String b;
|
||||
public String c; // CraftBukkit private -> public
|
||||
private int d;
|
||||
public int d; // CraftBukkit private -> public
|
||||
|
||||
public Packet2Handshake() {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue