From c92f4ba60c8dcdcabcdee89ec1d017b257f5d60a Mon Sep 17 00:00:00 2001 From: Sanae Date: Tue, 8 Mar 2022 17:03:16 -0600 Subject: [PATCH] Log captures again --- Server/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Server/Program.cs b/Server/Program.cs index cf30ef3..e75cf00 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -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: