Make scale a double
All checks were successful
/ deploy (push) Successful in 38s

This commit is contained in:
Minecon724 2025-01-18 11:43:29 +01:00
parent 96454e22ec
commit 1920d8dcc2
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -10,8 +10,8 @@ public class MapperConfig {
public boolean worldBlacklist; public boolean worldBlacklist;
public List<String> worlds; public List<String> worlds;
public int scaleLatitude; public double scaleLatitude;
public int scaleLongitude; public double scaleLongitude;
public Coordinates point; public Coordinates point;
@ -21,12 +21,13 @@ public class MapperConfig {
mapperConfig.worldBlacklist = configuration.getBoolean("worldBlacklist"); mapperConfig.worldBlacklist = configuration.getBoolean("worldBlacklist");
mapperConfig.worlds = configuration.getStringList("worlds"); mapperConfig.worlds = configuration.getStringList("worlds");
mapperConfig.scaleLatitude = configuration.getInt("dimensions.latitude"); mapperConfig.scaleLatitude = configuration.getDouble("dimensions.latitude");
mapperConfig.scaleLongitude = configuration.getInt("dimensions.longitude"); mapperConfig.scaleLongitude = configuration.getDouble("dimensions.longitude");
mapperConfig.point = new Coordinates( mapperConfig.point = new Coordinates(
configuration.getDouble("point.latitude"), configuration.getDouble("point.latitude"),
configuration.getDouble("point.longitude")); configuration.getDouble("point.longitude")
);
return mapperConfig; return mapperConfig;
} }