mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
Fix character utility loading not registering on first load.
This commit is contained in:
parent
7305ad41ac
commit
1af0517f36
1 changed files with 6 additions and 2 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue