This commit is contained in:
Laetitia (O-01-67) 2023-04-01 17:37:43 -04:00 committed by GitHub
parent 372f828357
commit bd1aadd7cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {