diff --git a/server/api/v1/client/chunk.get.ts b/server/api/v1/client/chunk.get.ts index 5c5b4f7..21c69dc 100644 --- a/server/api/v1/client/chunk.get.ts +++ b/server/api/v1/client/chunk.get.ts @@ -42,7 +42,7 @@ export default defineEventHandler(async (h3) => { }); const gameFile = path.join(versionDir, filename); - if (!fs.existsSync(versionDir)) + if (!fs.existsSync(gameFile)) throw createError({ statusCode: 400, statusMessage: "Invalid game file" }); const gameFileStats = fs.statSync(gameFile); diff --git a/server/internal/downloads/manifest.ts b/server/internal/downloads/manifest.ts index 5b9486e..f29fecc 100644 --- a/server/internal/downloads/manifest.ts +++ b/server/internal/downloads/manifest.ts @@ -29,7 +29,6 @@ class ManifestGenerator { if (overlays.length == 0) { return Object.fromEntries( Object.entries(rootManifest.manifest).map(([key, value]) => { - console.log(key, value); return [ key, Object.assign({}, value, { versionName: rootManifest.versionName }),