Skip to content

Commit 760d976

Browse files
author
ozelot379
committed
Fix grass block
1 parent 241ee06 commit 760d976

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/converter/OverlayToTranslateConverter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class OverlayToTranslateConverter extends AbstractConverter {
2424
const image_overlay = await this.readImage(overlay);
2525

2626
image.scan(0, 0, image.getWidth(), image.getHeight(), (x, y, idx) => {
27-
if (reverse_method ? (image_overlay.bitmap.data[idx + 3] === 255) : (image.bitmap.data[idx + 3] === 0)) {
27+
if (reverse_method ? (image_overlay.bitmap.data[idx + 3] > 0) : (image.bitmap.data[idx + 3] < 255)) {
2828
image.bitmap.data[idx] = image_overlay.bitmap.data[idx];
2929
image.bitmap.data[idx + 1] = image_overlay.bitmap.data[idx + 1];
3030
image.bitmap.data[idx + 2] = image_overlay.bitmap.data[idx + 2];

0 commit comments

Comments
 (0)