Revert "Mind ecs" (#14881)

This commit is contained in:
Leon Friedrich
2023-03-27 10:24:00 +13:00
committed by GitHub
parent c6c8fa2075
commit 4d71b1b81e
85 changed files with 684 additions and 1150 deletions

View File

@@ -1,4 +1,3 @@
using Content.Server.Mind;
using Robust.Server.Player;
using Robust.Shared.Network;
@@ -38,15 +37,9 @@ namespace Content.Server.Players
public void WipeMind()
{
var entityManager = IoCManager.Resolve<IEntityManager>();
var mindSystem = entityManager.System<MindSystem>();
Mind?.TransferTo(null);
// This will ensure Mind == null
if (Mind == null)
return;
mindSystem.TransferTo(Mind, null);
mindSystem.ChangeOwningPlayer(Mind, null);
Mind?.ChangeOwningPlayer(null);
}
/// <summary>