fix initial cache creation
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.8.4</Version>
|
<Version>0.8.5</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|||||||
@@ -24,15 +24,6 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
{
|
{
|
||||||
_characterDataFactory = characterDataFactory;
|
_characterDataFactory = characterDataFactory;
|
||||||
|
|
||||||
_playerRelatedObjects[ObjectKind.Player] =
|
|
||||||
gameObjectHandlerFactory(ObjectKind.Player, () => dalamudUtil.PlayerPointer, true);
|
|
||||||
_playerRelatedObjects[ObjectKind.MinionOrMount] =
|
|
||||||
gameObjectHandlerFactory(ObjectKind.Player, () => dalamudUtil.GetMinionOrMount(), true);
|
|
||||||
_playerRelatedObjects[ObjectKind.Pet] =
|
|
||||||
gameObjectHandlerFactory(ObjectKind.Pet, () => dalamudUtil.GetPet(), true);
|
|
||||||
_playerRelatedObjects[ObjectKind.Companion] =
|
|
||||||
gameObjectHandlerFactory(ObjectKind.Companion, () => dalamudUtil.GetCompanion(), true);
|
|
||||||
|
|
||||||
Mediator.Subscribe<CreateCacheForObjectMessage>(this, (msg) =>
|
Mediator.Subscribe<CreateCacheForObjectMessage>(this, (msg) =>
|
||||||
{
|
{
|
||||||
Logger.LogDebug("Received CreateCacheForObject for {handler}, updating player", msg.ObjectToCreateFor);
|
Logger.LogDebug("Received CreateCacheForObject for {handler}, updating player", msg.ObjectToCreateFor);
|
||||||
@@ -75,6 +66,15 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
Logger.LogDebug("Received Penumbra Mod settings change, updating player");
|
Logger.LogDebug("Received Penumbra Mod settings change, updating player");
|
||||||
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
_playerRelatedObjects[ObjectKind.Player] =
|
||||||
|
gameObjectHandlerFactory(ObjectKind.Player, () => dalamudUtil.PlayerPointer, true);
|
||||||
|
_playerRelatedObjects[ObjectKind.MinionOrMount] =
|
||||||
|
gameObjectHandlerFactory(ObjectKind.Player, () => dalamudUtil.GetMinionOrMount(), true);
|
||||||
|
_playerRelatedObjects[ObjectKind.Pet] =
|
||||||
|
gameObjectHandlerFactory(ObjectKind.Pet, () => dalamudUtil.GetPet(), true);
|
||||||
|
_playerRelatedObjects[ObjectKind.Companion] =
|
||||||
|
gameObjectHandlerFactory(ObjectKind.Companion, () => dalamudUtil.GetCompanion(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
|||||||
Reference in New Issue
Block a user