diff --git a/src/main/java/eu/m724/realweather/mapper/MapperConfig.java b/src/main/java/eu/m724/realweather/mapper/MapperConfig.java index cb6ad6f..ae0ea6f 100644 --- a/src/main/java/eu/m724/realweather/mapper/MapperConfig.java +++ b/src/main/java/eu/m724/realweather/mapper/MapperConfig.java @@ -10,8 +10,8 @@ public class MapperConfig { public boolean worldBlacklist; public List worlds; - public int scaleLatitude; - public int scaleLongitude; + public double scaleLatitude; + public double scaleLongitude; public Coordinates point; @@ -21,12 +21,13 @@ public class MapperConfig { mapperConfig.worldBlacklist = configuration.getBoolean("worldBlacklist"); mapperConfig.worlds = configuration.getStringList("worlds"); - mapperConfig.scaleLatitude = configuration.getInt("dimensions.latitude"); - mapperConfig.scaleLongitude = configuration.getInt("dimensions.longitude"); + mapperConfig.scaleLatitude = configuration.getDouble("dimensions.latitude"); + mapperConfig.scaleLongitude = configuration.getDouble("dimensions.longitude"); mapperConfig.point = new Coordinates( configuration.getDouble("point.latitude"), - configuration.getDouble("point.longitude")); + configuration.getDouble("point.longitude") + ); return mapperConfig; }