Fix character utility loading not registering on first load.

This commit is contained in:
Ottermandias 2022-07-27 16:00:57 +02:00
parent 7305ad41ac
commit 1af0517f36

View file

@ -51,8 +51,12 @@ public unsafe class CharacterUtility : IDisposable
public CharacterUtility() public CharacterUtility()
{ {
SignatureHelper.Initialise( this ); SignatureHelper.Initialise( this );
Dalamud.Framework.Update += LoadDefaultResources; LoadingFinished += () => PluginLog.Debug( "Loading of CharacterUtility finished." );
LoadingFinished += () => PluginLog.Debug( "Loading of CharacterUtility finished." ); LoadDefaultResources( null! );
if( !Ready )
{
Dalamud.Framework.Update += LoadDefaultResources;
}
} }
// We store the default data of the resources so we can always restore them. // We store the default data of the resources so we can always restore them.