mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-22 01:18:47 +00:00
fix: check for value type default
This commit is contained in:
parent
e71494ef83
commit
9c8f4d64c8
@ -23,7 +23,7 @@ internal static class WorldSettingsConverter
|
||||
object? propertyValue = property.GetValue(settings);
|
||||
Type propertyType = property.PropertyType;
|
||||
|
||||
if (propertyValue is null)
|
||||
if (propertyValue is null || (propertyType.IsValueType && propertyValue == Activator.CreateInstance(propertyType)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user