diff --git a/src/helpers.js b/src/helpers.js index 991dcc9e..b95add2a 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -110,7 +110,7 @@ const generateLights = (mapData) => { const p = mapData.fts.polygons.reduce((acc, { config }, idx) => { const cellX = Math.floor(config.minX / 100); - const cellZ = Math.floor(config.minZ) + 1; + const cellZ = Math.floor(config.minZ / 100) + 1; if (!acc[`${cellZ}-${cellX}`]) { acc[`${cellZ}-${cellX}`] = [idx];