Skip to content

Commit a921620

Browse files
committed
🛠️ Fix invalid JSON for default block atlas.
1 parent 1e4ea5a commit a921620

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/systems/resourcepackCompiler/1.20.4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default async function compileResourcePack(options: {
219219
.readFile(blockAtlasPath, 'utf-8')
220220
.catch(() => {
221221
console.log('Creating new block atlas...')
222-
return '{ sources: [] }'
222+
return '{ "sources": [] }'
223223
})
224224
.then(content => JSON.parse(content) as ITextureAtlas)
225225

src/systems/resourcepackCompiler/1.21.2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default async function compileResourcePack(options: {
4444
.readFile(blockAtlasPath, 'utf-8')
4545
.catch(() => {
4646
console.log('Creating new block atlas...')
47-
return '{ sources: [] }'
47+
return '{ "sources": [] }'
4848
})
4949
.then(content => JSON.parse(content) as ITextureAtlas)
5050

src/systems/resourcepackCompiler/1.21.4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default async function compileResourcePack(options: {
4646
.readFile(blockAtlasPath, 'utf-8')
4747
.catch(() => {
4848
console.log('Creating new block atlas...')
49-
return '{ sources: [] }'
49+
return '{ "sources": [] }'
5050
})
5151
.then(content => JSON.parse(content) as ITextureAtlas)
5252

0 commit comments

Comments
 (0)