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

View File

@@ -33,11 +33,6 @@ public partial class SettingEntry<T> : SettingBase, ISettingBase<T>, INetworkSyn
ThrowHelper.ThrowArgumentException($"{nameof(ISettingBase<T>)}: The type of {nameof(T)} is not an allowed type.");
}
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
{