Waaaa copium seethe

This commit is contained in:
Sanae 2022-03-15 02:08:52 -06:00
parent 7ca0b8591a
commit cc67ac9ced
2 changed files with 3 additions and 3 deletions

View File

@ -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
})
)
);

View File

@ -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<byte> data) {
UpdateType = MemoryMarshal.Read<TagUpdate>(data);
IsIt = MemoryMarshal.Read<bool>(data[1..]);
Seconds = MemoryMarshal.Read<byte>(data[2..]);
Minutes = MemoryMarshal.Read<ushort>(data[3..]);
Minutes = MemoryMarshal.Read<ushort>(data[4..]);
}
[Flags]