Update lemonade.js

fixed it
This commit is contained in:
baconthemyth 2024-01-06 22:01:29 -05:00 committed by GitHub
parent ebef840349
commit 54ad97a766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 16 deletions

View File

@ -4,21 +4,6 @@ behavior: behaviors.LIQUID,
category: "liquids",
isFood: true,
state: "solid",
tick: function(pixel) {
if (isEmpty(pixel.x, pixel.y+1)) {
createPixel("body", pixel.x, pixel.y+1);
pixel.element = "head";
}
else if (isEmpty(pixel.x, pixel.y-1)) {
createPixel("head", pixel.x, pixel.y-1);
pixelMap[pixel.x][pixel.y-1].color = pixel.color;
pixel.element = "body";
pixel.color = pixelColorPick(pixel)
}
else {
deletePixel(pixel.x, pixel.y);
}
},
};
elements.lemon_juice = {
@ -78,4 +63,4 @@ elements.false_lemon_tree = {
}
}
}
}
}