mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:07:22 +01:00
fix initial cache creation not happening without changes/redraws
This commit is contained in:
parent
1014add755
commit
3e2cbaaee2
1 changed files with 6 additions and 6 deletions
|
|
@ -36,6 +36,12 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
||||||
_haltCharaDataCreation = !msg.Resume;
|
_haltCharaDataCreation = !msg.Resume;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Mediator.Subscribe<CreateCacheForObjectMessage>(this, (msg) =>
|
||||||
|
{
|
||||||
|
Logger.LogDebug("Received CreateCacheForObject for {handler}, updating", msg.ObjectToCreateFor);
|
||||||
|
AddCacheToCreate(msg.ObjectToCreateFor.ObjectKind);
|
||||||
|
});
|
||||||
|
|
||||||
_playerRelatedObjects[ObjectKind.Player] = gameObjectHandlerFactory.Create(ObjectKind.Player, dalamudUtil.GetPlayerPointer, isWatched: true)
|
_playerRelatedObjects[ObjectKind.Player] = gameObjectHandlerFactory.Create(ObjectKind.Player, dalamudUtil.GetPlayerPointer, isWatched: true)
|
||||||
.GetAwaiter().GetResult();
|
.GetAwaiter().GetResult();
|
||||||
_playerRelatedObjects[ObjectKind.MinionOrMount] = gameObjectHandlerFactory.Create(ObjectKind.MinionOrMount, () => dalamudUtil.GetMinionOrMount(), isWatched: true)
|
_playerRelatedObjects[ObjectKind.MinionOrMount] = gameObjectHandlerFactory.Create(ObjectKind.MinionOrMount, () => dalamudUtil.GetMinionOrMount(), isWatched: true)
|
||||||
|
|
@ -54,12 +60,6 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Mediator.Subscribe<CreateCacheForObjectMessage>(this, (msg) =>
|
|
||||||
{
|
|
||||||
Logger.LogDebug("Received CreateCacheForObject for {handler}, updating", msg.ObjectToCreateFor);
|
|
||||||
AddCacheToCreate(msg.ObjectToCreateFor.ObjectKind);
|
|
||||||
});
|
|
||||||
|
|
||||||
Mediator.Subscribe<ClearCacheForObjectMessage>(this, (msg) =>
|
Mediator.Subscribe<ClearCacheForObjectMessage>(this, (msg) =>
|
||||||
{
|
{
|
||||||
if (msg.ObjectToCreateFor.ObjectKind == ObjectKind.Pet)
|
if (msg.ObjectToCreateFor.ObjectKind == ObjectKind.Pet)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue