mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Support custom world min heights when processing heightmaps
This commit is contained in:
parent
cd576a2a87
commit
df8b2802b2
Binary file not shown.
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user