Revert "Mind ecs" (#14881)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Content.Server.Administration;
|
||||
using Content.Server.Mind;
|
||||
using Content.Server.Players;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Roles;
|
||||
@@ -13,7 +12,6 @@ namespace Content.Server.Roles
|
||||
public sealed class RemoveRoleCommand : IConsoleCommand
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private readonly IEntityManager _entityManager = default!;
|
||||
|
||||
public string Command => "rmrole";
|
||||
|
||||
@@ -45,8 +43,7 @@ namespace Content.Server.Roles
|
||||
}
|
||||
|
||||
var role = new Job(mind, _prototypeManager.Index<JobPrototype>(args[1]));
|
||||
var mindSystem = _entityManager.System<MindSystem>();
|
||||
mindSystem.RemoveRole(mind, role);
|
||||
mind.RemoveRole(role);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user