Remove AllComponentsOneEntityDeleteTest (#19965)
* Remove AllComponentsOneEntityDeleteTest * AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
This commit is contained in:
@@ -12,5 +12,5 @@ namespace Content.Server.Humanoid.Components;
|
||||
public sealed partial class RandomHumanoidSpawnerComponent : Component
|
||||
{
|
||||
[DataField("settings", customTypeSerializer: typeof(PrototypeIdSerializer<RandomHumanoidSettingsPrototype>))]
|
||||
public string SettingsPrototypeId = default!;
|
||||
public string? SettingsPrototypeId;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@ public sealed class RandomHumanoidSystem : EntitySystem
|
||||
private void OnMapInit(EntityUid uid, RandomHumanoidSpawnerComponent component, MapInitEvent args)
|
||||
{
|
||||
QueueDel(uid);
|
||||
SpawnRandomHumanoid(component.SettingsPrototypeId, Transform(uid).Coordinates, MetaData(uid).EntityName);
|
||||
if (component.SettingsPrototypeId != null)
|
||||
SpawnRandomHumanoid(component.SettingsPrototypeId, Transform(uid).Coordinates, MetaData(uid).EntityName);
|
||||
}
|
||||
|
||||
public EntityUid SpawnRandomHumanoid(string prototypeId, EntityCoordinates coordinates, string name)
|
||||
|
||||
Reference in New Issue
Block a user