fix cognizine ghost role (#20632)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -23,7 +23,7 @@ public sealed partial class MakeSentient : ReagentEffect
|
|||||||
entityManager.RemoveComponent<MonkeyAccentComponent>(uid);
|
entityManager.RemoveComponent<MonkeyAccentComponent>(uid);
|
||||||
|
|
||||||
// Stops from adding a ghost role to things like people who already have a mind
|
// Stops from adding a ghost role to things like people who already have a mind
|
||||||
if (entityManager.HasComponent<MindContainerComponent>(uid))
|
if (entityManager.TryGetComponent<MindContainerComponent>(uid, out var mindContainer) && mindContainer.HasMind)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user