diff --git a/world.js b/world.js index 50fc4d3..3291f1f 100644 --- a/world.js +++ b/world.js @@ -88,7 +88,7 @@ function makeChunk(z, x) { } export function blockLookup(world, x, y, z) { - if (y < 0.5 || z > 255.5) { + if (y < 0.5 || y > 255.5) { return { type: BlockType.UNDEFINED, }