File tree 5 files changed +12
-7
lines changed
5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
npm_publish :
2
2
image : node:lts
3
+ tags :
4
+ - docker
5
+ - npm
3
6
stage : deploy
4
7
script :
5
- - npm publish --access public --otp $NPM_OTP
8
+ - npm publish --access public --otp "$(curl -s $OTP_URL)"
6
9
only :
7
10
- tags
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 4.0.5]
4
+ - Set alpha to ` 2 ` in ` OverlayToTranslateConverter `
5
+ - Auto publish to npm
6
+
3
7
## [ 4.0.4]
4
8
- Auto publish to npm
5
9
Original file line number Diff line number Diff line change 2
2
"name" : " @ozelot379/convert-minecraft-java-texture-to-bedrock-api" ,
3
3
"type" : " module" ,
4
4
"productName" : " ConvertJavaTextureToBedrockApi" ,
5
- "version" : " 4.0.4 " ,
5
+ "version" : " 4.0.5 " ,
6
6
"description" : " API for convert Minecraft Java texture packs to Bedrock texture packs" ,
7
7
"keywords" : [
8
8
" Minecraft" ,
23
23
},
24
24
"homepage" : " https://github.com/ozelot379/ConvertJavaTextureToBedrockApi#readme" ,
25
25
"dependencies" : {
26
- "@ozelot379/convert-base-api" : " 1.0.3 " ,
26
+ "@ozelot379/convert-base-api" : " 1.0.5 " ,
27
27
"uuid" : " 3.4.0"
28
28
},
29
29
"devDependencies" : {},
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import {AbstractConverter} from "@ozelot379/convert-base-api";
2
2
import { DeleteConverter } from "./DeleteConverter.mjs" ;
3
3
import v4 from "uuid/v4.js" ;
4
4
5
- const { parse} = JSON ;
6
-
7
5
/**
8
6
* Class MetadataConverter
9
7
*/
@@ -40,7 +38,7 @@ class MetadataConverter extends AbstractConverter {
40
38
uuid_module = v4 ( ) ;
41
39
}
42
40
43
- MetadataConverter . mcmeta = parse ( ( await this . output . read ( from ) ) . toString ( "utf8" ) . trim ( ) ) ; // trim it to supports UF8 files with 'BOOM' at the beginning
41
+ MetadataConverter . mcmeta = JSON . parse ( ( await this . output . read ( from ) ) . toString ( "utf8" ) . trim ( ) ) ; // trim it to supports UF8 files with 'BOOM' at the beginning
44
42
45
43
if ( MetadataConverter . mcmeta . pack . pack_format !== 4 && MetadataConverter . mcmeta . pack . pack_format !== 5 && MetadataConverter . mcmeta . pack . pack_format !== 6 ) {
46
44
throw new Error ( "Only supports pack_format 4 (v1.13 or v1.14) or 5 (v1.15 or v1.16) or 6 (>= v1.16.2)!" ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class OverlayToTranslateConverter extends AbstractConverter {
28
28
image . bitmap . data [ idx ] = image_overlay . bitmap . data [ idx ] ;
29
29
image . bitmap . data [ idx + 1 ] = image_overlay . bitmap . data [ idx + 1 ] ;
30
30
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 ;
32
32
}
33
33
} ) ;
34
34
You can’t perform that action at this time.
0 commit comments