Make AdminLogsSystem an IoC manager (#8492)
* Make log not entity system * Fixes
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Content.Server.StationEvents.Events
|
||||
Occurrences += 1;
|
||||
LastRun = EntitySystem.Get<GameTicker>().RoundDuration();
|
||||
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventStarted, LogImpact.High, $"Event startup: {Name}");
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Content.Server.StationEvents.Events
|
||||
/// </summary>
|
||||
public virtual void Announce()
|
||||
{
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventAnnounced, $"Event announce: {Name}");
|
||||
|
||||
if (StartAnnouncement != null)
|
||||
@@ -158,7 +158,7 @@ namespace Content.Server.StationEvents.Events
|
||||
/// </summary>
|
||||
public virtual void Shutdown()
|
||||
{
|
||||
EntitySystem.Get<AdminLogSystem>()
|
||||
IoCManager.Resolve<IAdminLogManager>()
|
||||
.Add(LogType.EventStopped, $"Event shutdown: {Name}");
|
||||
|
||||
if (EndAnnouncement != null)
|
||||
|
||||
Reference in New Issue
Block a user