Fix gibbing aghost (#43177)

Update MindSystem.cs
This commit is contained in:
Pok 2026-05-05 22:33:58 +03:00 • committed by GitHub
parent 3cec265d42
commit b7e78ad6fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,7 +184,7 @@ public sealed class MindSystem : SharedMindSystem
{
component = EnsureComp<MindContainerComponent>(entity.Value);
if (TryGetMind(entity.Value, out var entityMindId, out _))
if (TryGetMind(entity.Value, out var entityMindId, out _) && entityMindId != mindId)
_ghosts.OnGhostAttempt(entityMindId, false);
if (TryComp<ActorComponent>(entity.Value, out var actor))