3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-07-22 18:18:03 +02:00

Support custom world min heights when processing heightmaps

Dieser Commit ist enthalten in:
SirYwell 2021-08-21 10:52:45 +02:00
Ursprung cd576a2a87
Commit df8b2802b2
2 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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
}
}