Fix closet skeletons spawning in nullspace (#22942)

This commit is contained in:
Leon Friedrich
2023-12-25 01:48:58 -05:00
committed by GitHub
parent 8587c3778a
commit 0baffe3243
2 changed files with 3 additions and 3 deletions

View File

@@ -13,6 +13,6 @@ public sealed partial class RandomEntityStorageSpawnRuleComponent : Component
/// <summary>
/// The entity to be spawned.
/// </summary>
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public string Prototype = string.Empty;
[DataField(required: true)]
public EntProtoId Prototype;
}

View File

@@ -258,7 +258,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
if (component.Open)
{
TransformSystem.SetWorldPosition(toInsert, TransformSystem.GetWorldPosition(container));
TransformSystem.DropNextTo(toInsert, container);
return true;
}