Fix closet skeletons spawning in nullspace (#22942)
This commit is contained in:
@@ -13,6 +13,6 @@ public sealed partial class RandomEntityStorageSpawnRuleComponent : Component
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The entity to be spawned.
|
/// The entity to be spawned.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
|
[DataField(required: true)]
|
||||||
public string Prototype = string.Empty;
|
public EntProtoId Prototype;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
|
|||||||
|
|
||||||
if (component.Open)
|
if (component.Open)
|
||||||
{
|
{
|
||||||
TransformSystem.SetWorldPosition(toInsert, TransformSystem.GetWorldPosition(container));
|
TransformSystem.DropNextTo(toInsert, container);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user