Heightmap is now an integer.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user