Remove missing Value error, it should just use the default value if it's not specified

This commit is contained in:
Evil Factory
2026-04-19 17:49:06 -03:00
parent 7daefe6f16
commit 0a3ca2403e
@@ -34,11 +34,6 @@ public partial class SettingEntry<T> : SettingBase, ISettingBase<T>, INetworkSyn
} }
ValueChangePredicate = valueChangePredicate; ValueChangePredicate = valueChangePredicate;
if (ConfigInfo.Element.Attribute("Value") is null)
{
ThrowHelper.ThrowArgumentException($"The Setting {InternalName} in package {OwnerPackage.Name} does not have a 'Value' attribute!");
}
try try
{ {
Value = (T)Convert.ChangeType(ConfigInfo.Element.GetAttributeString("Value", null), typeof(T)); Value = (T)Convert.ChangeType(ConfigInfo.Element.GetAttributeString("Value", null), typeof(T));