Skip to content

Commit

Permalink
Fix wrong hide speed run by Copilot
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot <[email protected]>
  • Loading branch information
NikoCat233 and Copilot authored Mar 1, 2025
1 parent d370185 commit e554fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/OptionItem/OptionItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public virtual string GetString()
// Deprecated IsHidden function
public virtual bool IsHiddenOn(CustomGameMode mode)
{
return IsHidden || this.Parent?.IsHiddenOn(Options.CurrentGameMode) == true || (HideOptionInFFA != CustomGameMode.All && HideOptionInFFA == mode) || (HideOptionInHnS != CustomGameMode.All && HideOptionInHnS == mode) || (HideOptionInSpeedRun != CustomGameMode.All && HideOptionInFFA == mode) || (GameMode != CustomGameMode.All && GameMode != mode);
return IsHidden || this.Parent?.IsHiddenOn(Options.CurrentGameMode) == true || (HideOptionInFFA != CustomGameMode.All && HideOptionInFFA == mode) || (HideOptionInHnS != CustomGameMode.All && HideOptionInHnS == mode) || (HideOptionInSpeedRun != CustomGameMode.All && HideOptionInSpeedRun == mode) || (GameMode != CustomGameMode.All && GameMode != mode);
}
public string ApplyFormat(string value)
{
Expand Down

0 comments on commit e554fe4

Please sign in to comment.