1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-13 08:38:19 -05:00

fix issue with certain penalties not linking

This commit is contained in:
RaidMax
2022-01-28 15:33:21 -06:00
parent c84b270ef7
commit 75d6417d64
5 changed files with 27 additions and 13 deletions

View File

@ -172,9 +172,10 @@ namespace IW4MAdmin.Application.Misc
{
if (pluginObject.isParser)
{
await OnLoadAsync(manager);
IsParser = true;
IEventParser eventParser = (IEventParser)_scriptEngine.GetValue("eventParser").ToObject();
IRConParser rconParser = (IRConParser)_scriptEngine.GetValue("rconParser").ToObject();
var eventParser = (IEventParser)_scriptEngine.GetValue("eventParser").ToObject();
var rconParser = (IRConParser)_scriptEngine.GetValue("rconParser").ToObject();
manager.AdditionalEventParsers.Add(eventParser);
manager.AdditionalRConParsers.Add(rconParser);
}