varfix
This commit is contained in:
parent
372f828357
commit
bd1aadd7cf
|
|
@ -2513,7 +2513,7 @@ if(enabledMods.includes(libraryMod) && enabledMods.includes(colorOffsetMod)) {
|
||||||
pixel.wet--;
|
pixel.wet--;
|
||||||
} else { //if exposed, continuously try to boil off to random neighbor
|
} else { //if exposed, continuously try to boil off to random neighbor
|
||||||
if(exposedToAir(pixel)) {
|
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 rnx = randomNeighbor[0]
|
||||||
var rny = randomNeighbor[1]
|
var rny = randomNeighbor[1]
|
||||||
if(isEmpty(pixel.x+rnx, pixel.y+rny, false)) {
|
if(isEmpty(pixel.x+rnx, pixel.y+rny, false)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue