]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix closet skeletons spawning in nullspace (#22942)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Mon, 25 Dec 2023 06:48:58 +0000 (01:48 -0500)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 06:48:58 +0000 (23:48 -0700)
Content.Server/StationEvents/Components/RandomEntityStorageSpawnRuleComponent.cs
Content.Shared/Storage/EntitySystems/SharedEntityStorageSystem.cs

index 141ff1b55883703a9aa9b5e729fefd7c68f38c69..0da276fc6a6450ac65cf814cff883b90c313cff3 100644 (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;
 }
index 1e3320e7dbe1a051185b9d2d255e526200e7bc88..306f4aeaeedf8ee43e47904748a8d3a46b48ca20 100644 (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;
         }