Fix double downloads maybe?
This commit is contained in:
@@ -725,7 +725,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
|
||||
|
||||
if (!IsVisible && nowVisible)
|
||||
{
|
||||
// This is deferred application attempt, avoid any log output
|
||||
// This is a deferred application attempt, avoid any repeat log output
|
||||
if (_deferred != Guid.Empty)
|
||||
{
|
||||
_isVisible = true;
|
||||
@@ -733,6 +733,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
|
||||
{
|
||||
ApplyCharacterData(_deferred, _cachedData!, forceApplyCustomization: true);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
IsVisible = true;
|
||||
|
||||
@@ -77,7 +77,7 @@ public class VisibilityService : DisposableMediatorSubscriberBase
|
||||
|
||||
if (player.Value == TrackedPlayerStatus.NotVisible && isVisible)
|
||||
{
|
||||
if (_makeVisibleNextFrame.Contains(ident))
|
||||
if (_makeVisibleNextFrame.Contains(ident, StringComparer.Ordinal))
|
||||
{
|
||||
if (_trackedPlayerVisibility.TryUpdate(ident, newValue: TrackedPlayerStatus.Visible, comparisonValue: TrackedPlayerStatus.NotVisible))
|
||||
Mediator.Publish<PlayerVisibilityMessage>(new(ident, IsVisible: true));
|
||||
|
||||
Reference in New Issue
Block a user