From f581b8ff2adefc9c30edb240a5f8d4c65bff6ca7 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 17 May 2024 20:38:39 +0100 Subject: [PATCH] Fixed issue with server failing to generate a green flare as its a weapon without a default preset --- project/src/generators/LocationGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/generators/LocationGenerator.ts b/project/src/generators/LocationGenerator.ts index 5afc2694..e98d13f3 100644 --- a/project/src/generators/LocationGenerator.ts +++ b/project/src/generators/LocationGenerator.ts @@ -997,7 +997,7 @@ export class LocationGenerator { let children: Item[] = []; const defaultPreset = this.cloner.clone(this.presetHelper.getDefaultPreset(chosenTpl)); - if (defaultPreset) + if (defaultPreset?._items) { try {