From 1af0517f363f5a38be1110c5d580a64028099fd4 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 27 Jul 2022 16:00:57 +0200 Subject: [PATCH] Fix character utility loading not registering on first load. --- Penumbra/Interop/CharacterUtility.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Penumbra/Interop/CharacterUtility.cs b/Penumbra/Interop/CharacterUtility.cs index 9ff778c3..9f41050b 100644 --- a/Penumbra/Interop/CharacterUtility.cs +++ b/Penumbra/Interop/CharacterUtility.cs @@ -51,8 +51,12 @@ public unsafe class CharacterUtility : IDisposable public CharacterUtility() { 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.