Revert "Revert "relieve gc pressure maybe"" (without caching addresses this time)

This reverts commit 5d2b25bccb.
This commit is contained in:
Loporrit
2024-02-14 05:34:12 +00:00
parent 5d2b25bccb
commit 0f661c9c69
5 changed files with 88 additions and 77 deletions

View File

@@ -459,7 +459,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
if (string.IsNullOrEmpty(PlayerName))
{
var pc = _dalamudUtil.FindPlayerByNameHash(OnlineUser.Ident);
if (pc == default((string, nint))) return;
if (pc.ObjectId == 0) return;
Logger.LogDebug("One-Time Initializing {this}", this);
Initialize(pc.Name);
Logger.LogDebug("One-Time Initialized {this}", this);