0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-05 03:05:04 +00:00

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,