do not update on honorific change when no change actually happened

This commit is contained in:
rootdarkarchon
2023-04-21 10:53:57 +02:00
parent 28b89f66f8
commit e4b3a79f2b
3 changed files with 40 additions and 37 deletions

View File

@@ -62,10 +62,13 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
PalettePlusChanged();
}
});
Mediator.Subscribe<HonorificMessage>(this, async (_) =>
Mediator.Subscribe<HonorificMessage>(this, (msg) =>
{
Logger.LogDebug("Received Honorific change, updating player");
HonorificChanged();
if (!string.Equals(msg.NewHonorificTitle, _playerData.HonorificData, StringComparison.Ordinal))
{
Logger.LogDebug("Received Honorific change, updating player");
HonorificChanged();
}
});
Mediator.Subscribe<PenumbraModSettingChangedMessage>(this, async (msg) =>
{