Log captures again

This commit is contained in:
Sanae 2022-03-08 17:03:16 -06:00
parent f47ab01d4c
commit c92f4ba60c
1 changed files with 6 additions and 1 deletions

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: