diff --git a/Server/Program.cs b/Server/Program.cs index 59ef7f1..522ac7b 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -199,7 +199,7 @@ CommandHandler.RegisterCommand("tag", args => { Parallel.ForEachAsync(server.Clients.Except(seekers), async (hider, _) => await hider.Send(new TagPacket { UpdateType = TagPacket.TagUpdate.State, - IsIt = true + IsIt = false }) ) ); diff --git a/Shared/Packet/Packets/TagPacket.cs b/Shared/Packet/Packets/TagPacket.cs index 8f5296b..a1160a1 100644 --- a/Shared/Packet/Packets/TagPacket.cs +++ b/Shared/Packet/Packets/TagPacket.cs @@ -15,14 +15,14 @@ public struct TagPacket : IPacket { MemoryMarshal.Write(data, ref UpdateType); MemoryMarshal.Write(data[1..], ref IsIt); MemoryMarshal.Write(data[2..], ref Seconds); - MemoryMarshal.Write(data[3..], ref Minutes); + MemoryMarshal.Write(data[4..], ref Minutes); } public void Deserialize(Span data) { UpdateType = MemoryMarshal.Read(data); IsIt = MemoryMarshal.Read(data[1..]); Seconds = MemoryMarshal.Read(data[2..]); - Minutes = MemoryMarshal.Read(data[3..]); + Minutes = MemoryMarshal.Read(data[4..]); } [Flags]