|
|
|
@ -18,6 +18,7 @@ import java.io.IOException;
@@ -18,6 +18,7 @@ import java.io.IOException;
|
|
|
|
|
import java.nio.file.Files; |
|
|
|
|
import java.nio.file.Path; |
|
|
|
|
import java.nio.file.Paths; |
|
|
|
|
import java.util.Arrays; |
|
|
|
|
import java.util.stream.Stream; |
|
|
|
|
|
|
|
|
|
public enum MapLoader { |
|
|
|
@ -137,6 +138,16 @@ public enum MapLoader {
@@ -137,6 +138,16 @@ public enum MapLoader {
|
|
|
|
|
|
|
|
|
|
}); // Try with resources block
|
|
|
|
|
|
|
|
|
|
// Generate full white alternate to 1600300
|
|
|
|
|
// Declare and initialize an array of short[16][16]
|
|
|
|
|
|
|
|
|
|
short[][] heightMapEntry = new short[16][16]; |
|
|
|
|
|
|
|
|
|
for (short[] shorts : heightMapEntry) |
|
|
|
|
Arrays.fill(shorts, (short) 255); |
|
|
|
|
|
|
|
|
|
Terrain._heightmap_pixel_cache.put(1006301, heightMapEntry); |
|
|
|
|
|
|
|
|
|
} catch (IOException e) { |
|
|
|
|
Logger.error(e); |
|
|
|
|
} |
|
|
|
|