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
jonahnm authored Jun 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -221,7 +221,7 @@ public static void AddEncyclopediaEntry(PDAEncyclopedia.EntryData entry)

PDAEncyclopediaPatcher.CustomEntryData[entry.key] = entry;

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

@@ -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.