]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Finally fix cryostorage duping (#24251)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Fri, 19 Jan 2024 00:27:21 +0000 (19:27 -0500)
committerGitHub <noreply@github.com>
Fri, 19 Jan 2024 00:27:21 +0000 (19:27 -0500)
Content.Server/Shuttles/Systems/ArrivalsSystem.cs

index 64bc99f1bb419ef29492649ea18363c704c8f0a2..b257bb5b96431d6f9e6704411ac2e8eaeea049a3 100644 (file)
@@ -315,6 +315,9 @@ public sealed class ArrivalsSystem : EntitySystem
 
     private void OnPlayerSpawn(PlayerSpawningEvent ev)
     {
+        if (ev.SpawnResult != null)
+            return;
+
         // Only works on latejoin even if enabled.
         if (!Enabled || _ticker.RunLevel != GameRunLevel.InRound)
             return;