Skip to content

Commit

Permalink
Bugfix: Vanilla dungeons room selection should no longer include all …
Browse files Browse the repository at this point in the history
…custom rooms
  • Loading branch information
probablykory committed Sep 22, 2024
1 parent 788010f commit 687f0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JotunnLib/Managers/DungeonManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private void OnDungeonGeneratorSetupAvailableRooms(DungeonGenerator self)

var selectedRooms = Rooms.Values
.Where(r => r.Room.m_enabled)
.Where(r => self.m_themes.HasFlag(CustomRoom.GetRoomTheme(r.ThemeName)));
.Where(r => Enum.TryParse(r.ThemeName, false, out Room.Theme theme) ? theme != Room.Theme.None && self.m_themes.HasFlag(theme) : false);

foreach (var room in selectedRooms)
{
Expand Down

0 comments on commit 687f0f6

Please sign in to comment.