fix: Resolve duplicate identifier by renaming chunkY to floorChunkY

This commit is contained in:
Kacper Kostka (aider) 2025-04-04 12:00:26 +02:00
parent 9cdf7eba78
commit 3f4f8bc09c

View File

@ -340,8 +340,8 @@ function setPixel(worldX, worldY, type) {
function getPixel(worldX, worldY) {
// Special case: floor at the bottom of the world (first two chunks)
const chunkY = Math.floor(worldY / CHUNK_SIZE);
if (worldY % CHUNK_SIZE === CHUNK_SIZE - 1 && (chunkY === 0 || chunkY === 1)) {
const floorChunkY = Math.floor(worldY / CHUNK_SIZE);
if (worldY % CHUNK_SIZE === CHUNK_SIZE - 1 && (floorChunkY === 0 || floorChunkY === 1)) {
return WALL;
}