Kill SharedEntityExtensions and all popup extensions (#20909)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
using Content.Shared.Random;
|
||||
using Content.Shared.Random.Helpers;
|
||||
using Robust.Shared.Random;
|
||||
|
||||
namespace Content.Server.Coordinates;
|
||||
|
||||
public sealed class SpawnRandomOffsetSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly RandomHelperSystem _randomHelper = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -13,8 +17,7 @@ public sealed class SpawnRandomOffsetSystem : EntitySystem
|
||||
|
||||
private void OnMapInit(EntityUid uid, SpawnRandomOffsetComponent component, MapInitEvent args)
|
||||
{
|
||||
// TODO: Kill this extension with fire, thanks
|
||||
uid.RandomOffset(component.Offset);
|
||||
_randomHelper.RandomOffset(uid, component.Offset);
|
||||
EntityManager.RemoveComponentDeferred(uid, component);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user