From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Date: Mon, 25 Dec 2023 06:48:58 +0000 (-0500)
Subject: Fix closet skeletons spawning in nullspace (#22942)
X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0baffe32435341a066198805c94f38fd049395ae;p=space-station-14.git
Fix closet skeletons spawning in nullspace (#22942)
---
diff --git a/Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs b/Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs
index 141ff1b558..0da276fc6a 100644
--- a/Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs
+++ b/Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs
@@ -13,6 +13,6 @@ public sealed partial class RandomEntityStorageSpawnRuleComponent : Component
///
/// The entity to be spawned.
///
- [DataField("prototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))]
- public string Prototype = string.Empty;
+ [DataField(required: true)]
+ public EntProtoId Prototype;
}
diff --git a/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs
index 1e3320e7db..306f4aeaee 100644
--- a/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs
+++ b/Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs
@@ -258,7 +258,7 @@ public abstract class SharedEntityStorageSystem : EntitySystem
if (component.Open)
{
- TransformSystem.SetWorldPosition(toInsert, TransformSystem.GetWorldPosition(container));
+ TransformSystem.DropNextTo(toInsert, container);
return true;
}