fix issue with custom event registration

This commit is contained in:
RaidMax 2021-06-16 08:51:22 -05:00
parent e628ac0e9e
commit dbceb23823

View File

@ -120,7 +120,7 @@ namespace IW4MAdmin.Application.EventParsers
if (lineSplit.Length > 1)
{
var type = lineSplit[0];
return _eventTypeMap.ContainsKey(type) ? (_eventTypeMap[type], type): (GameEvent.EventType.Unknown, null);
return _eventTypeMap.ContainsKey(type) ? (_eventTypeMap[type], type): (GameEvent.EventType.Unknown, lineSplit[0]);
}
foreach (var (key, value) in _regexMap)