Skip to content

Commit

Permalink
Merge pull request #266 from kitsuneymg/world-jungle-fix
Browse files Browse the repository at this point in the history
Add another guard for invalid keys
  • Loading branch information
Razzmatazzz authored Aug 26, 2024
2 parents 7187f36 + 72d0185 commit 63c5d1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RemnantSaveGuardian/RemnantWorldEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,11 @@ static public void ProcessEvents(RemnantCharacter character, List<Match> areas,
else
continue;
}
if (!zoneEvents.ContainsKey(world))
{
Logger.Warn($"Injectable world {world} not found in {mode} events");
continue;
}
if (zoneEvents[world].Any(we => we._name == injectable._name))
{
// injectable already exists
Expand Down

0 comments on commit 63c5d1a

Please sign in to comment.