Skip to content

Commit

Permalink
fix: ignore extra doors
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Apr 5, 2022
1 parent 94ce8ab commit 214cfb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GodSeekerPlus/Modules/Visual/MorePantheonCaps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ private void SetupCaps(On.BossSequenceDoor.orig_Start orig, BossSequenceDoor sel
Logger.LogDebug($"Radiant cap enabled for {self.bossSequence.name}");
}

if (Ref.LS.GetRABCompletion(doorPDDict[self.playerDataString])
if (doorPDDict.TryGetValue(self.playerDataString, out int num)
&& Ref.LS.GetRABCompletion(num)
&& self.completedNoHitsDisplay?.GetComponent<SpriteRenderer>() is SpriteRenderer sr
) {
sr.transform.Translate(0, 0, -0.0801f);
Expand Down

0 comments on commit 214cfb4

Please sign in to comment.