Fixed issue with server failing to generate a green flare as its a weapon without a default preset

This commit is contained in:
Dev 2024-05-17 20:38:39 +01:00
parent fa7d67b46e
commit f581b8ff2a

View File

@ -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
{