Fix closet skeletons spawning in nullspace (#22942)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
|
||||
|
||||
if (component.Open)
|
||||
{
|
||||
TransformSystem.SetWorldPosition(toInsert, TransformSystem.GetWorldPosition(container));
|
||||
TransformSystem.DropNextTo(toInsert, container);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user