From 93e2432459b8d7d380412aa7bf210d5343d13d85 Mon Sep 17 00:00:00 2001 From: jonahnm <61718056+jonahnm@users.noreply.github.com> Date: Thu, 8 Jun 2023 13:28:11 -0400 Subject: [PATCH] fix: Check PDAEncyclopedia.initialized before calling postfix again (#400) Update PDAHandler.cs --- Nautilus/Handlers/PDAHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nautilus/Handlers/PDAHandler.cs b/Nautilus/Handlers/PDAHandler.cs index 10ae23c8f..d8a9d524d 100644 --- a/Nautilus/Handlers/PDAHandler.cs +++ b/Nautilus/Handlers/PDAHandler.cs @@ -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); } -} \ No newline at end of file +}