fix grass bug

This commit is contained in:
JWo1F 2015-10-09 14:32:00 +03:00
parent df58bea932
commit b28204974a

View file

@ -105,7 +105,7 @@ function generateSimpleChunk(chunkX, chunkZ) {
for (var x = 0; x < 16;x++) {
for (var z = 0; z < 16; z++) {
var level = space.value(worldX + x, worldZ + z) * 138;
var level = Math.floor(space.value(worldX + x, worldZ + z) * 138);
for (var y = 0; y < 256; y++) {
let block;
@ -124,4 +124,4 @@ function generateSimpleChunk(chunkX, chunkZ) {
return chunk;
}
module.exports=generateSimpleChunk;
module.exports=generateSimpleChunk;