]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix: reform dionas via SpawnNextToOrDrop (#39505)
authorPerry Fraser <perryprog@users.noreply.github.com>
Mon, 11 Aug 2025 11:00:12 +0000 (07:00 -0400)
committerGitHub <noreply@github.com>
Mon, 11 Aug 2025 11:00:12 +0000 (13:00 +0200)
Content.Shared/Species/Systems/ReformSystem.cs

index 943432522d80404974d11888a2b8771285b61c30..285d36840f6722c4c912dd056a5f2e582cc9e2f0 100644 (file)
@@ -90,7 +90,7 @@ public sealed partial class ReformSystem : EntitySystem
 
         // Spawn a new entity
         // This is, to an extent, taken from polymorph. I don't use polymorph for various reasons- most notably that this is permanent.
-        var child = Spawn(comp.ReformPrototype, Transform(uid).Coordinates);
+        var child = SpawnNextToOrDrop(comp.ReformPrototype, uid);
 
         // This transfers the mind to the new entity
         if (_mindSystem.TryGetMind(uid, out var mindId, out var mind))
@@ -106,7 +106,7 @@ public sealed partial class ReformSystem : EntitySystem
     }
 
     public sealed partial class ReformEvent : InstantActionEvent { }
-    
+
     [Serializable, NetSerializable]
     public sealed partial class ReformDoAfterEvent : SimpleDoAfterEvent { }
 }