EDTS needs explicit (int) conversion now …

This commit is contained in:
alterNERDtive 2021-08-10 22:39:04 +02:00
parent ed07dbebbe
commit d9f8e8ef10

View file

@ -87,7 +87,7 @@ namespace alterNERDtive.Edna.Edts
/// <summary> /// <summary>
/// Gets the precision to which the location can be calculated. /// Gets the precision to which the location can be calculated.
/// </summary> /// </summary>
public int Precision { get; } public int Precision { get; private set; }
} }
/// <summary> /// <summary>
@ -132,10 +132,10 @@ namespace alterNERDtive.Edna.Edts
return new StarSystem( return new StarSystem(
name: name, name: name,
coordinates: new Location( coordinates: new Location(
x: json["position"]["x"], x: (int)json["position"]["x"],
y: json["position"]["y"], y: (int)json["position"]["y"],
z: json["position"]["z"], z: (int)json["position"]["z"],
precision: json["uncertainty"])); precision: (int)json["uncertainty"]));
} }
} }
} }