Skip to content

Commit ceedafb

Browse files
author
ozelot379
committed
Set alpha to 2 in OverlayToTranslateConverter
1 parent e02e0ef commit ceedafb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [4.0.5]
4+
- Set alpha to `2` in `OverlayToTranslateConverter`
5+
- Auto publish to npm
6+
37
## [4.0.4]
48
- Auto publish to npm
59

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock-api",
33
"type": "module",
44
"productName": "ConvertJavaTextureToBedrockApi",
5-
"version": "4.0.4",
5+
"version": "4.0.5",
66
"description": "API for convert Minecraft Java texture packs to Bedrock texture packs",
77
"keywords": [
88
"Minecraft",
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://github.com/ozelot379/ConvertJavaTextureToBedrockApi#readme",
2525
"dependencies": {
26-
"@ozelot379/convert-base-api": "1.0.3",
26+
"@ozelot379/convert-base-api": "1.0.5",
2727
"uuid": "3.4.0"
2828
},
2929
"devDependencies": {},

src/converter/OverlayToTranslateConverter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class OverlayToTranslateConverter extends AbstractConverter {
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];
31-
image.bitmap.data[idx + 3] = Math.min(1, image_overlay.bitmap.data[idx + 3]);
31+
image.bitmap.data[idx + 3] = 2;
3232
}
3333
});
3434

0 commit comments

Comments
 (0)