mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
fix null ref in IsCustom option extension
This commit is contained in:
1 parent
f351431eaa
commit
31b35f7175
1 file changed
+1
-3
@@ -10,9 +10,7 @@ namespace MiraAPI.Utilities
|
||||
{
|
||||
public static bool IsCustom(this OptionBehaviour optionBehaviour)
|
||||
{
|
||||
if (ModdedOptionsManager.Options.Any(opt => opt.OptionBehaviour == optionBehaviour)) return true;
|
||||
|
||||
return false;
|
||||
return ModdedOptionsManager.Options.Any(opt => opt.OptionBehaviour && opt.OptionBehaviour.Equals(optionBehaviour));
|
||||
}
|
||||
|
||||
public static Color DarkenColor(this Color color)
|
||||
|
||||
Reference in new issue
Block a user