Fixed TrySetValue returning an incorrect result.

This commit is contained in:
MapleWheels
2026-02-06 17:20:15 -05:00
committed by Maplewheels
parent b3d0fbeb5d
commit dcd7df4860

View File

@@ -102,7 +102,7 @@ public class SettingEntry<T> : SettingBase, ISettingBase<T>, INetworkSyncEntity
}
});
return isFailed || TrySetValue(typeConvertedValue);
return !isFailed && TrySetValue(typeConvertedValue);
}
public override OneOf<string, XElement> GetSerializableValue() => Value.ToString();