BungeeCord Support
* Provides support for IP forwarding via BungeeCord. * Treats Bungee as Online Mode. By: md_5 <git@md-5.net>
This commit is contained in:
@@ -5,3 +5,13 @@
|
||||
package net.minecraft.network.protocol.handshake;
|
||||
|
||||
import net.minecraft.network.FriendlyByteBuf;
|
||||
@@ -11,7 +12,8 @@
|
||||
private static final int MAX_HOST_LENGTH = 255;
|
||||
|
||||
private ClientIntentionPacket(FriendlyByteBuf buf) {
|
||||
- this(buf.readVarInt(), buf.readUtf(255), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
|
||||
+ // Spigot - increase max hostName length
|
||||
+ this(buf.readVarInt(), buf.readUtf(Short.MAX_VALUE), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
|
||||
}
|
||||
|
||||
private void write(FriendlyByteBuf buf) {
|
||||
|
||||
Reference in New Issue
Block a user