fix: reform dionas via SpawnNextToOrDrop (#39505)
This commit is contained in:
@@ -90,7 +90,7 @@ public sealed partial class ReformSystem : EntitySystem
|
|||||||
|
|
||||||
// Spawn a new entity
|
// 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.
|
// 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
|
// This transfers the mind to the new entity
|
||||||
if (_mindSystem.TryGetMind(uid, out var mindId, out var mind))
|
if (_mindSystem.TryGetMind(uid, out var mindId, out var mind))
|
||||||
|
|||||||
Reference in New Issue
Block a user