fix: reform dionas via SpawnNextToOrDrop (#39505)

This commit is contained in:
Perry Fraser
2025-08-11 07:00:12 -04:00
committed by GitHub
parent ad5fe5678c
commit 3654fcf5dd

View 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 { }
}