mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
reapply data after cutscene end
This commit is contained in:
parent
d5be2aecfa
commit
1aa0563fc0
1 changed files with 9 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ public sealed class PairManager : DisposableMediatorSubscriberBase
|
|||
Mediator.Subscribe<ZoneSwitchStartMessage>(this, (_) => DalamudUtilOnZoneSwitched());
|
||||
Mediator.Subscribe<DelayedFrameworkUpdateMessage>(this, (_) => DalamudUtilOnDelayedFrameworkUpdate());
|
||||
Mediator.Subscribe<DisconnectedMessage>(this, (_) => ClearPairs());
|
||||
Mediator.Subscribe<CutsceneEndMessage>(this, (_) => ReapplyPairData());
|
||||
_directPairsInternal = DirectPairsLazy();
|
||||
_groupPairsInternal = GroupPairsLazy();
|
||||
|
||||
|
|
@ -385,6 +386,14 @@ public sealed class PairManager : DisposableMediatorSubscriberBase
|
|||
});
|
||||
}
|
||||
|
||||
private void ReapplyPairData()
|
||||
{
|
||||
foreach (var pair in _allClientPairs.Select(k => k.Value))
|
||||
{
|
||||
pair.ApplyLastReceivedData();
|
||||
}
|
||||
}
|
||||
|
||||
private void RecreateLazy()
|
||||
{
|
||||
_directPairsInternal = DirectPairsLazy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue