add blockSprite

This commit is contained in:
lllzebralll
2022-08-11 20:22:20 +03:00
parent 420ae4e993
commit 0711cb07f0
5 changed files with 82 additions and 5 deletions
+2 -2
View File
@@ -143,10 +143,10 @@ void WorldGenerator::generate(voxel* voxels, int cx, int cy, int cz, int seed){
}
if (real_y <= 2)
id = 11;
if ((real_y > 55) && ((int)height + 1 == real_y) && ((unsigned short)random() > 56000)){
if ((id == 0) && (real_y > 55) && ((int)height + 1 == real_y) && ((unsigned short)random() > 56000)){
id = 12;
}
if ((real_y > 55) && ((int)height + 1 == real_y) && ((unsigned short)random() > 64000)){
if ((id == 0) && (real_y > 55) && ((int)height + 1 == real_y) && ((unsigned short)random() > 64000)){
id = 13;
}
voxels[(y * CHUNK_D + z) * CHUNK_W + x].id = id;