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))
|
||||||
@@ -106,7 +106,7 @@ public sealed partial class ReformSystem : EntitySystem
|
|||||||
}
|
}
|
||||||
|
|
||||||
public sealed partial class ReformEvent : InstantActionEvent { }
|
public sealed partial class ReformEvent : InstantActionEvent { }
|
||||||
|
|
||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public sealed partial class ReformDoAfterEvent : SimpleDoAfterEvent { }
|
public sealed partial class ReformDoAfterEvent : SimpleDoAfterEvent { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user