fix cryosleepers deleting the station (#24143)

* fix cryogenic units deleting the station

* ship it
This commit is contained in:
Nemanja
2024-01-15 23:10:52 -05:00
committed by GitHub
parent a0b026de73
commit 017450ef17
3 changed files with 6 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ public sealed partial class ContainerSpawnPointComponent : Component
/// <summary> /// <summary>
/// The ID of the container that this entity will spawn players into /// The ID of the container that this entity will spawn players into
/// </summary> /// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)] [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
public string ContainerId; public string ContainerId = string.Empty;
/// <summary> /// <summary>
/// An optional job specifier /// An optional job specifier

View File

@@ -79,7 +79,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
return; return;
} }
Del(args.Station); Del(args.SpawnResult);
args.SpawnResult = null; args.SpawnResult = null;
} }
} }

View File

@@ -21,7 +21,8 @@
access: [["Cryogenics"]] access: [["Cryogenics"]]
- type: InteractionOutline - type: InteractionOutline
- type: Cryostorage - type: Cryostorage
- type: Climbable - type: Physics
canCollide: false
- type: DragInsertContainer - type: DragInsertContainer
containerId: storage containerId: storage
- type: ExitContainerOnMove - type: ExitContainerOnMove
@@ -46,7 +47,7 @@
- type: entity - type: entity
parent: CryogenicSleepUnit parent: CryogenicSleepUnit
id: CryogenicSleepUnitSpawner id: CryogenicSleepUnitSpawner
suffix: Spawner, All suffix: Spawner, Roundstart AllJobs
components: components:
- type: ContainerSpawnPoint - type: ContainerSpawnPoint
containerId: storage containerId: storage