mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 07:24:15 +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<ZoneSwitchStartMessage>(this, (_) => DalamudUtilOnZoneSwitched());
|
||||||
Mediator.Subscribe<DelayedFrameworkUpdateMessage>(this, (_) => DalamudUtilOnDelayedFrameworkUpdate());
|
Mediator.Subscribe<DelayedFrameworkUpdateMessage>(this, (_) => DalamudUtilOnDelayedFrameworkUpdate());
|
||||||
Mediator.Subscribe<DisconnectedMessage>(this, (_) => ClearPairs());
|
Mediator.Subscribe<DisconnectedMessage>(this, (_) => ClearPairs());
|
||||||
|
Mediator.Subscribe<CutsceneEndMessage>(this, (_) => ReapplyPairData());
|
||||||
_directPairsInternal = DirectPairsLazy();
|
_directPairsInternal = DirectPairsLazy();
|
||||||
_groupPairsInternal = GroupPairsLazy();
|
_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()
|
private void RecreateLazy()
|
||||||
{
|
{
|
||||||
_directPairsInternal = DirectPairsLazy();
|
_directPairsInternal = DirectPairsLazy();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue