mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
do not update on honorific change when no change actually happened
This commit is contained in:
parent
28b89f66f8
commit
e4b3a79f2b
3 changed files with 40 additions and 37 deletions
|
|
@ -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) =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue