File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,9 @@ export class PackMeta {
132
132
read ( ) {
133
133
if ( ! fs . existsSync ( this . path ) ) return
134
134
135
+ const raw = fs . readFileSync ( this . path , 'utf-8' )
135
136
try {
136
- const content = JSON . parse ( fs . readFileSync ( this . path , 'utf-8' ) )
137
+ const content = JSON . parse ( raw )
137
138
if ( content . pack ) {
138
139
this . pack_format = content . pack . pack_format ?? this . pack_format
139
140
this . description = content . pack . description ?? this . description
@@ -146,7 +147,7 @@ export class PackMeta {
146
147
}
147
148
} catch ( e ) {
148
149
throw new IntentionalExportError (
149
- `Failed to read existing Data Pack's pack.mcmeta file: ${ e } `
150
+ `Failed to read existing pack.mcmeta file at ${ this . path } : ${ e } \n\nFile content:\n ${ raw } `
150
151
)
151
152
}
152
153
}
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export default async function compileResourcePack(
105
105
packMetaPath ,
106
106
0 ,
107
107
[ ] ,
108
- `Animated Java Data Pack for ${ targetVersions . join ( ', ' ) } `
108
+ `Animated Java Resource Pack for ${ targetVersions . join ( ', ' ) } `
109
109
)
110
110
packMeta . read ( )
111
111
packMeta . pack_format = getResourcePackFormat ( targetVersions [ 0 ] )
You can’t perform that action at this time.
0 commit comments