Support custom world min heights when processing heightmaps

This commit is contained in:
SirYwell 2021-08-21 10:52:45 +02:00
parent cd576a2a87
commit df8b2802b2
2 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ public class HeightmapProcessor implements IBatchProcessor {
int index = (z << 4) | x;
if (!updated[i].get(index) // ignore if that position was already set
&& type.includes(block)) {
heightmaps[i][index] = y + 1; // mc requires + 1
heightmaps[i][index] = y + 1 - minY; // mc requires + 1, heightmaps are normalized internally
updated[i].set(index); // mark as updated
}
}