From bd1aadd7cf8558129ccbe87d083a7fcd294f1c80 Mon Sep 17 00:00:00 2001 From: "Laetitia (O-01-67)" <68935009+O-01-67@users.noreply.github.com> Date: Sat, 1 Apr 2023 17:37:43 -0400 Subject: [PATCH] varfix --- mods/the_ground.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/the_ground.js b/mods/the_ground.js index 83f8a0d5..59d4b7aa 100644 --- a/mods/the_ground.js +++ b/mods/the_ground.js @@ -2513,7 +2513,7 @@ if(enabledMods.includes(libraryMod) && enabledMods.includes(colorOffsetMod)) { pixel.wet--; } else { //if exposed, continuously try to boil off to random neighbor if(exposedToAir(pixel)) { - var randomNeighbor = adjacentCoords[Math.floor(Math.random() * neighbors.length)] + var randomNeighbor = adjacentCoords[Math.floor(Math.random() * adjacentCoords.length)] var rnx = randomNeighbor[0] var rny = randomNeighbor[1] if(isEmpty(pixel.x+rnx, pixel.y+rny, false)) {