fix: майдслейв теперь убирается только при доставании майдслейва
This commit is contained in:
@@ -69,6 +69,11 @@ public sealed class MindslaveSystem : SharedMindslaveSystem
|
||||
|
||||
private void OnMindslaveRemoved(Entity<SubdermalImplantComponent> ent, ref SubdermalImplantRemoved args)
|
||||
{
|
||||
if (!Tag.HasTag(ent.Owner, MindslaveTag))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!TryComp(args.Target, out MindSlaveComponent? mindslave))
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user