diff --git a/Shared/Packet/Packets/TagPacket.cs b/Shared/Packet/Packets/TagPacket.cs index 813c92c..adaf9c0 100644 --- a/Shared/Packet/Packets/TagPacket.cs +++ b/Shared/Packet/Packets/TagPacket.cs @@ -12,11 +12,17 @@ public struct TagPacket : IPacket { public short Size => 4; public void Serialize(Span data) { - MemoryMarshal.Write(data, ref IsIt); + MemoryMarshal.Write(data, ref UpdateType); + MemoryMarshal.Write(data[1..], ref IsIt); + MemoryMarshal.Write(data[2..], ref Seconds); + MemoryMarshal.Write(data[3..], ref Minutes); } public void Deserialize(Span data) { - IsIt = MemoryMarshal.Read(data); + UpdateType = MemoryMarshal.Read(data); + IsIt = MemoryMarshal.Read(data[1..]); + Seconds = MemoryMarshal.Read(data[2..]); + Minutes = MemoryMarshal.Read(data[3..]); } [Flags]