diff --git a/project/src/routers/serializers/BundleSerializer.ts b/project/src/routers/serializers/BundleSerializer.ts index efc0bb00..dfd51dce 100644 --- a/project/src/routers/serializers/BundleSerializer.ts +++ b/project/src/routers/serializers/BundleSerializer.ts @@ -27,6 +27,12 @@ export class BundleSerializer extends Serializer } this.logger.info(`[BUNDLE]: ${req.url}`); + if (!bundle.modpath) + { + this.logger.error(`Mod: ${key} lacks a modPath property, skipped loading`); + + return; + } this.httpFileUtil.sendFile(resp, `${bundle.modpath}/bundles/${bundle.filename}`); }