diff --git a/API/Core.cs b/API/Core.cs new file mode 100644 index 0000000..5a82c7a --- /dev/null +++ b/API/Core.cs @@ -0,0 +1,6 @@ +namespace ADOFAIRenderer.API; + +public class Core +{ + +} \ No newline at end of file diff --git a/Data/Input/EnumDropdownBinder.cs b/Data/Input/EnumDropdownBinder.cs index d8b68e6..470be45 100644 --- a/Data/Input/EnumDropdownBinder.cs +++ b/Data/Input/EnumDropdownBinder.cs @@ -20,7 +20,7 @@ namespace ADOFAIRenderer.Data.Input /// /// The currently selected enum value. /// - public T Value => _dropdown != null && _dropdown.index >= 0 && _dropdown.index < _values.Count + public T Value => _dropdown is { index: >= 0 } && _dropdown.index < _values.Count ? _values[_dropdown.index] : default;