Heightmap is now an integer.

This commit is contained in:
2023-09-20 16:24:00 -04:00
parent bd97745ed1
commit 1e9eec2c48
2 changed files with 21 additions and 3 deletions
+3 -2
View File
@@ -40,7 +40,7 @@ public class HeightMap {
public static final HashMap<Integer, HeightMap> heightmapByLoadNum = new HashMap<>();
public static final HashMap<String, int[][]> _pixelData = new HashMap<>();
public static final HashMap<Integer, int[][]> _pixelData = new HashMap<>();
// Heightmap data for all zones.
public static float SCALEVALUE = 1.0f / 255;
@@ -341,7 +341,8 @@ public class HeightMap {
// Insert color data into lookup table
_pixelData.put(imageFile.getName().substring(0, imageFile.getName().lastIndexOf(".")), colorData);
int heightMapID = Integer.parseInt(imageFile.getName().substring(0, imageFile.getName().lastIndexOf(".")));
_pixelData.put(heightMapID, colorData);
} catch (IOException e) {
Logger.error(e);