mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
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:
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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user