refactor: use helper method
This commit is contained in:
parent
13f4da7283
commit
1ba35b67c9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue