Clean up PDA code a little.

This commit is contained in:
Pieter-Jan Briers
2020-07-22 02:22:05 +02:00
parent 1386b8ca2d
commit 551973fbb9
2 changed files with 5 additions and 11 deletions

View File

@@ -800,7 +800,7 @@ namespace Content.Server.GameTicking
var access = card.Owner.GetComponent<AccessComponent>();
var accessTags = access.Tags;
accessTags.UnionWith(jobPrototype.Access);
pdaComponent.SetPDAOwner(mob);
pdaComponent.SetPDAOwner(characterName);
var mindComponent = mob.GetComponent<MindComponent>();
if (mindComponent.HasMind) //Redundancy checks.
{