}
private int[] extractHeightmapData(@NotNull Map<String, AnyTag> data) {
AnyTag heightmapTag = data.get(LEVEL_HEIGHTMAP);
if (heightmapTag.isIntArray(X_MAX*Z_MAX)) {
return heightmapTag.intArray();
} else {
int[] fallback = new int[X_MAX*Z_MAX];
for (int i = 0; i < fallback.length; ++i) {
fallback[i] = Y_MAX-1;
}