refactor: use helper method

This commit is contained in:
Anna 2022-05-11 00:01:34 -04:00
parent 13f4da7283
commit 1ba35b67c9
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
1 changed files with 1 additions and 2 deletions

View File

@ -110,8 +110,7 @@ internal class Obscurer : IDisposable {
return false;
}
var gameChara = (FFXIVClientStructs.FFXIV.Client.Game.Character.Character*) chara.Address;
var name = Marshal.PtrToStringUTF8((IntPtr) gameChara->GameObject.Name)!;
var name = chara.RawName()!;
if (this.Plugin.Config.ObscureAppearancesExcludeFriends && this.Friends.Contains(name)) {
return false;