Skip to content

Commit

Permalink
fix: Check PDAEncyclopedia.initialized before calling postfix again (#…
Browse files Browse the repository at this point in the history
…400)

Update PDAHandler.cs
  • Loading branch information
jonahnm committed Jun 8, 2023
1 parent 307db14 commit 93e2432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nautilus/Handlers/PDAHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public static void AddEncyclopediaEntry(PDAEncyclopedia.EntryData entry)

PDAEncyclopediaPatcher.CustomEntryData[entry.key] = entry;

if (uGUI.isMainLevel)
if(PDAEncyclopedia.initialized)
PDAEncyclopediaPatcher.InitializePostfix();
}

Expand Down Expand Up @@ -270,4 +270,4 @@ public static void AddEncyclopediaEntry(string key, string path, string title, s

AddEncyclopediaEntry(encyEntryData);
}
}
}

0 comments on commit 93e2432

Please sign in to comment.