From d9f8e8ef104b4956eafc7632d108f6b90d03c8d3 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 10 Aug 2021 22:39:04 +0200 Subject: [PATCH] =?UTF-8?q?EDTS=20needs=20explicit=20(int)=20conversion=20?= =?UTF-8?q?now=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EDTS/EdtsApi.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/EDTS/EdtsApi.cs b/EDTS/EdtsApi.cs index 1194653..c72390e 100644 --- a/EDTS/EdtsApi.cs +++ b/EDTS/EdtsApi.cs @@ -87,7 +87,7 @@ namespace alterNERDtive.Edna.Edts /// /// Gets the precision to which the location can be calculated. /// - public int Precision { get; } + public int Precision { get; private set; } } /// @@ -132,10 +132,10 @@ namespace alterNERDtive.Edna.Edts return new StarSystem( name: name, coordinates: new Location( - x: json["position"]["x"], - y: json["position"]["y"], - z: json["position"]["z"], - precision: json["uncertainty"])); + x: (int)json["position"]["x"], + y: (int)json["position"]["y"], + z: (int)json["position"]["z"], + precision: (int)json["uncertainty"])); } } } \ No newline at end of file