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>
|
/// <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
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Del(args.Station);
|
Del(args.SpawnResult);
|
||||||
args.SpawnResult = null;
|
args.SpawnResult = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user