Skip to content

Commit

Permalink
Merge pull request #19 from Clazex/master
Browse files Browse the repository at this point in the history
Fix skins not loaded when preloads disabled
  • Loading branch information
PrashantMohta authored Feb 28, 2022
2 parents e7a8f0b + 7ad0817 commit ede06ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CustomKnight/CustomKnight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ public override void Initialize(Dictionary<string, Dictionary<string, GameObject
}
SkinManager.checkDirectoryStructure();

SkinManager.getSkinNames();
SkinManager.CurrentSkin = SkinManager.GetSkinById(CustomKnight.GlobalSettings.DefaultSkin);

// Initial load
if (preloadedObjects != null)
{
Expand All @@ -116,9 +119,6 @@ public override void Initialize(Dictionary<string, Dictionary<string, GameObject
GameObjects.Add("Birthplace", preloadedObjects["Dream_Abyss"]["End Cutscene/Dummy"]);
GameObjects.Add("DreamArrival", preloadedObjects["GG_Vengefly"]["Boss Scene Controller/Dream Entry/Knight Dream Arrival"]);
GameObjects.Add("Dreamnail", preloadedObjects["RestingGrounds_07"]["Dream Moth/Knight Dummy"]);

SkinManager.getSkinNames();
SkinManager.CurrentSkin = SkinManager.GetSkinById(CustomKnight.GlobalSettings.DefaultSkin);
}
if(CustomKnight.GlobalSettings.SwapperEnabled){
swapManager.enabled = true;
Expand Down

0 comments on commit ede06ac

Please sign in to comment.