Use 0x7FFFFF** for internal packet headers

This commit is contained in:
Oliver Booth 2022-05-19 10:39:34 +01:00
parent 442a496123
commit e2f3128f75
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
7 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ClientBound;
/// <summary>
/// Represents a packet which requests encryption from the client.
/// </summary>
[Packet(0xE2)]
[Packet(0x7FFFFFE2)]
internal sealed class EncryptionRequestPacket : Packet
{
/// <summary>

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ClientBound;
/// <summary>
/// Represents a packet which responds to a <see cref="HandshakeRequestPacket" />.
/// </summary>
[Packet(0xE1)]
[Packet(0x7FFFFFE1)]
internal sealed class HandshakeResponsePacket : Packet
{
/// <summary>

View File

@ -1,6 +1,6 @@
namespace TcpDotNet.Protocol.Packets.ClientBound;
[Packet(0xF1)]
[Packet(0x7FFFFFF1)]
public sealed class PongPacket : Packet
{
/// <summary>

View File

@ -1,6 +1,6 @@
namespace TcpDotNet.Protocol.Packets.ClientBound;
[Packet(0xE4)]
[Packet(0x7FFFFFE4)]
internal sealed class SessionExchangePacket : Packet
{
/// <summary>

View File

@ -5,7 +5,7 @@ namespace TcpDotNet.Protocol.Packets.ServerBound;
/// <summary>
/// Represents a packet which responds to a <see cref="EncryptionRequestPacket" />.
/// </summary>
[Packet(0xE3)]
[Packet(0x7FFFFFE3)]
internal sealed class EncryptionResponsePacket : Packet
{
/// <summary>

View File

@ -3,7 +3,7 @@
/// <summary>
/// Represents a packet which requests a handshake with a <see cref="ProtocolListener" />.
/// </summary>
[Packet(0xE0)]
[Packet(0x7FFFFFE0)]
internal sealed class HandshakeRequestPacket : Packet
{
/// <summary>

View File

@ -2,7 +2,7 @@
namespace TcpDotNet.Protocol.Packets.ServerBound;
[Packet(0xF0)]
[Packet(0x7FFFFFF0)]
public sealed class PingPacket : Packet
{
/// <summary>