From 1920d8dcc214cf0c46550cfdfe086000a1b6d43d Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 18 Jan 2025 11:43:29 +0100 Subject: [PATCH] Make scale a double --- .../java/eu/m724/realweather/mapper/MapperConfig.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; }