Skip to content

Commit 07bce4f

Browse files
author
ozelot379
committed
Check if pack.mcmeta exists
1 parent 67ef373 commit 07bce4f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [1.11.0]
44
- Supports mob effects
5+
- Check if `pack.mcmeta` exists
56

67
## [1.10.1]
78
- Exclude webapp from npm package

‎src/converter/MetadataConverter.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class MetadataConverter extends AbstractConverter {
1515
for await (const [from, to, uuid_header_file, uuid_module_file] of this.getData()) {
1616
this.log.log(`Create metadata ${to}`);
1717

18+
if (!await this.output.exists(from)) {
19+
throw new Error(`Missing ${from}!`);
20+
}
21+
1822
let uuid_header = "";
1923
if (await this.output.exists(uuid_header_file)) {
2024
uuid_header = (await this.output.read(uuid_header_file)).toString("utf8");

0 commit comments

Comments
 (0)