Remove Exts.Enum<T>
This functionality is now built in. We can rely on the built in functions rather than a custom class.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
00cd438190
commit
e652f95be9
@@ -298,7 +298,7 @@ namespace OpenRA.Mods.Common.Server
|
||||
{
|
||||
lock (server.LobbyInfo)
|
||||
{
|
||||
if (!Enum<Session.ClientState>.TryParse(s, false, out var state))
|
||||
if (!Enum.TryParse<Session.ClientState>(s, out var state))
|
||||
{
|
||||
server.SendFluentMessageTo(conn, MalformedCommand, ["command", "state"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user