]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix playtime tracker (#20014)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Mon, 11 Sep 2023 07:42:25 +0000 (17:42 +1000)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 07:42:25 +0000 (17:42 +1000)
Content.Client/Roles/JobSystem.cs
Content.Client/Roles/Jobs/JobSystem.cs [deleted file]
Content.Server/Players/PlayTimeTracking/PlayTimeTrackingSystem.cs
Content.Server/Roles/Jobs/JobSystem.cs

index f49bb7de551b7f2fff1e7061c35c4208094d8d7a..632554602c766a9b175fffffdc3467417a3f7df5 100644 (file)
@@ -1,4 +1,3 @@
-using Content.Shared.Roles;
 using Content.Shared.Roles.Jobs;
 
 namespace Content.Client.Roles;
diff --git a/Content.Client/Roles/Jobs/JobSystem.cs b/Content.Client/Roles/Jobs/JobSystem.cs
deleted file mode 100644 (file)
index 7e7c4cc..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-using Content.Shared.Roles.Jobs;
-
-namespace Content.Client.Roles.Jobs;
-
-public sealed class JobSystem : SharedJobSystem
-{
-}
index 6442ef2c67cb97447a614319889e65515dee1d27..13d0794dd5ebd1c121433952b7e2f8bc8501ce64 100644 (file)
@@ -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>();
         }
 
index 66224d1abad0542ff80f3c5d067c2891261d2974..7bee6da7554f3789a7120ea12f84b2e62bb80381 100644 (file)
@@ -19,6 +19,7 @@ public sealed class JobSystem : SharedJobSystem
 
     public override void Initialize()
     {
+        base.Initialize();
         SubscribeLocalEvent<MindComponent, MindRoleAddedEvent>(MindOnDoGreeting);
     }