Skip to content

Commit

Permalink
Fix an issue with the admin flag
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneLamoureux committed Feb 8, 2021
1 parent 34c36a7 commit a7212ca
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ public class HyperspaceCoordinatesService {
private CoordinatesRepository coordinatesRepository;

public HyperspaceCoordinates survey(String system, String base) {
return new HyperspaceCoordinates(IdUtil.generate(system),
coordinatesRepository.findOneBySystemAndBase(system, base).blur());
return survey(system, coordinatesRepository.findOneBySystemAndBase(system, base));
}

public HyperspaceCoordinates survey(String system, float x, float y, float z) {
Coordinates coordinates = new Coordinates(x, y, z);
return survey(system, new Coordinates(x, y, z));
}

HyperspaceCoordinates survey(String system, Coordinates coordinates) {
float accuracy = Constants.SURVEY_MK3_ACCURACY;

if (adminMode) {
Expand Down

0 comments on commit a7212ca

Please sign in to comment.