diff --git a/packages/core/src/service/FileService.ts b/packages/core/src/service/FileService.ts index 6cfa861da..4db69419c 100644 --- a/packages/core/src/service/FileService.ts +++ b/packages/core/src/service/FileService.ts @@ -267,7 +267,10 @@ export class ArchiveUriSupporter implements UriProtocolSupporter { private getDataInArchive(archiveName: string, pathInArchive: string): Uint8Array { const entries = this.entries.get(archiveName) if (!entries) { - throw new Error(`Archive “${archiveName}” has not been loaded into the memory`) + throw this.externals.error.createKind( + 'ENOENT', + `Archive “${archiveName}” has not been loaded into the memory`, + ) } const entry = entries.get(pathInArchive) if (!entry) { diff --git a/packages/java-edition/src/index.ts b/packages/java-edition/src/index.ts index ee47a74b4..45452d0fb 100644 --- a/packages/java-edition/src/index.ts +++ b/packages/java-edition/src/index.ts @@ -21,6 +21,7 @@ import * as jeMcf from './mcfunction/index.js' export * as binder from './binder/index.js' export * as dependency from './dependency/index.js' export * as json from './json/index.js' +export * from './mcdocAttributes.js' export * as mcf from './mcfunction/index.js' export const initialize: core.ProjectInitializer = async (ctx) => {