Don't DC the client if they send an unknown flag

This item is only used in a LogTrace call, so it seems excessive to kick
a player on servers just for a log statement

Co-Authored-By: js6pak <me@6pak.dev>
This commit is contained in:
miniduikbootandjs6pak committed 2024-07-27 19:13:42 +02:00
1 parent c522dd9f88
commit fe3ea67510
1 file changed
+1 -1
@@ -41,7 +41,7 @@ namespace Impostor.Api.Net.Messages
public static string FlagToString(byte flag)
{
return FlagCache[flag];
return FlagCache.TryGetValue(flag, out var res) ? res : $"Unknown Flag {flag}";
}
}
}