Skip to content

Commit 5d9f80e

Browse files
authored
only apply editor if level set is a collab level set
1 parent d18f3f3 commit 5d9f80e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UI/JournalHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ private static void OnJournalEnter(OuiJournal journal, Oui from) {
5656
if (MTN.Journal.Has("collabLobbyMaps/" + forceArea.LevelSet))
5757
journal.Pages.Add(new OuiJournalLobbyMap(journal, MTN.Journal["collabLobbyMaps/" + forceArea.LevelSet]));
5858

59-
// apply custom page editing
60-
if (JournalEditors.TryGetValue(LobbyHelper.GetCollabNameForSID(forceArea.SID), out Action<OuiJournal, string, bool> collabJournalPageEditor))
59+
// apply custom page editing if in a lobby with a journal page editor set
60+
if (LobbyHelper.IsCollabLevelSet(forceArea.LevelSet) && JournalEditors.TryGetValue(LobbyHelper.GetCollabNameForSID(forceArea.SID), out Action<OuiJournal, string, bool> collabJournalPageEditor))
6161
collabJournalPageEditor(journal, forceArea.LevelSet, ShowOnlyDiscovered);
6262

6363
// if necessary, redraw the first page to include the stickers

0 commit comments

Comments
 (0)