Move connect packet type in enum

This commit is contained in:
Sanae 2021-11-29 01:03:19 -06:00
parent 3f4a3fee9e
commit 6afb232953
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ public class Server {
if (first) {
first = false;
if (header.Type != PacketType.Connect) {
throw new Exception("First packet was not init");
throw new Exception($"First packet was not init, instead it was {header.Type}");
}
ConnectPacket connect = MemoryMarshal.Read<ConnectPacket>(memory.Memory.Span[HeaderSize..size]);

View File

@ -2,9 +2,9 @@
public enum PacketType {
Unknown,
Connect,
Player,
Game,
Connect,
Disconnect,
Costume,
Shine,