Small fixes
This commit is contained in:
3
world.js
3
world.js
@@ -115,9 +115,10 @@ function makeChunk(z, x) {
|
||||
data.set(Array(waterHeight - currentHeight).fill(BlockType.WATER), offset + currentHeight);
|
||||
currentHeight = waterHeight;
|
||||
} else {
|
||||
data[offset + grassHeight - 1] = BlockType.GRASS;
|
||||
if (hasATree(seed, z + i, x + j)) {
|
||||
trees.push([i, j, currentHeight]);
|
||||
} else {
|
||||
data[offset + grassHeight - 1] = BlockType.GRASS;
|
||||
}
|
||||
}
|
||||
data.set(Array(256 - currentHeight).fill(BlockType.AIR), offset + currentHeight);
|
||||
|
||||
Reference in New Issue
Block a user