]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix cryosleepers deleting the station (#24143)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Tue, 16 Jan 2024 04:10:52 +0000 (23:10 -0500)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 04:10:52 +0000 (23:10 -0500)
* fix cryogenic units deleting the station

* ship it

Content.Server/Spawners/Components/ContainerSpawnPointComponent.cs
Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs
Resources/Prototypes/Entities/Structures/cryopod.yml

index 5cd2ac3048e400c33497904178b84ad1670f3e68..9782becc2714d393068ed427cbf1365a62f3e353 100644 (file)
@@ -13,8 +13,8 @@ public sealed partial class ContainerSpawnPointComponent : Component
     /// <summary>
     /// The ID of the container that this entity will spawn players into
     /// </summary>
-    [DataField, ViewVariables(VVAccess.ReadWrite)]
-    public string ContainerId;
+    [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
+    public string ContainerId = string.Empty;
 
     /// <summary>
     /// An optional job specifier
index 65f107670071eaabceb567eccd5effd91d3ff916..15c4031d585ac69f5d0b3441d06ce851644afb7c 100644 (file)
@@ -79,7 +79,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
             return;
         }
 
-        Del(args.Station);
+        Del(args.SpawnResult);
         args.SpawnResult = null;
     }
 }
index c4d13887003319b0dcee4fe4f429e36c3d60f474..9063e8b1385c02ac61f1fdec256d000fe6d6b84f 100644 (file)
@@ -21,7 +21,8 @@
     access: [["Cryogenics"]]
   - type: InteractionOutline
   - type: Cryostorage
-  - type: Climbable
+  - type: Physics
+    canCollide: false
   - type: DragInsertContainer
     containerId: storage
   - type: ExitContainerOnMove
@@ -46,7 +47,7 @@
 - type: entity
   parent: CryogenicSleepUnit
   id: CryogenicSleepUnitSpawner
-  suffix: Spawner, All
+  suffix: Spawner, Roundstart AllJobs
   components:
   - type: ContainerSpawnPoint
     containerId: storage