#1939: Fix server brand; prevent bungee-bungee connections.

This commit is contained in:
md_5
2016-08-20 11:43:48 +10:00
parent 11c7b246e0
commit 504d3c0529
3 changed files with 14 additions and 2 deletions

View File

@@ -48,6 +48,14 @@ public abstract class DefinedPacket
buf.writeBytes( b );
}
public static byte[] toArray(ByteBuf buf)
{
byte[] ret = new byte[ buf.readableBytes() ];
buf.readBytes( ret );
return ret;
}
public static byte[] readArray(ByteBuf buf)
{
return readArray( buf, buf.readableBytes() );