fix cryosleepers deleting the station (#24143)
* fix cryogenic units deleting the station * ship it
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -79,7 +79,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
|
||||
return;
|
||||
}
|
||||
|
||||
Del(args.Station);
|
||||
Del(args.SpawnResult);
|
||||
args.SpawnResult = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user