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

Log captures again

This commit is contained in:
Sanae 2022-03-08 17:03:16 -06:00
parent f47ab01d4c
commit c92f4ba60c

View file

@ -58,7 +58,12 @@ float MarioSize(bool is2d) {
server.PacketHandler = (c, p) => {
{
if (p is PlayerPacket playerPacket) c.Metadata["scenario"] = playerPacket.ScenarioNum;
if (p is PlayerPacket playerPacket) {
c.Metadata["scenario"] = playerPacket.ScenarioNum;
if (string.IsNullOrEmpty(playerPacket.Hack)) {
c.Logger.Warn($"In a capture {playerPacket.Hack}");
}
}
}
switch (p) {
case CostumePacket: