Fix playtime tracker (#20014)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Shared.Roles;
|
||||
using Content.Shared.Roles.Jobs;
|
||||
|
||||
namespace Content.Client.Roles;
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
using Content.Shared.Roles.Jobs;
|
||||
|
||||
namespace Content.Client.Roles.Jobs;
|
||||
|
||||
public sealed class JobSystem : SharedJobSystem
|
||||
{
|
||||
}
|
||||
@@ -205,7 +205,7 @@ public sealed class PlayTimeTrackingSystem : EntitySystem
|
||||
if (!_tracking.TryGetTrackerTimes(player, out var playTimes))
|
||||
{
|
||||
// Sorry mate but your playtimes haven't loaded.
|
||||
Logger.ErrorS("playtime", $"Playtimes weren't ready yet for {player} on roundstart!");
|
||||
Log.Error($"Playtimes weren't ready yet for {player} on roundstart!");
|
||||
playTimes ??= new Dictionary<string, TimeSpan>();
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ public sealed class JobSystem : SharedJobSystem
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<MindComponent, MindRoleAddedEvent>(MindOnDoGreeting);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user