Merge pull request #62 from JWo1F/small-fix

fix grass bug
This commit is contained in:
Romain Beaumont 2015-10-09 13:53:26 +02:00
commit caf0ece703

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;