hotfix(vehicles): changed detected cargo IDs for military transport warning

This commit is contained in:
2026-04-19 01:26:20 +02:00
parent 6bfcd0f8e0
commit 8011f3b053
+1 -1
View File
@@ -177,7 +177,7 @@ export function getCargoWarnings(stockList: IStock[]) {
else if (stockVehicle.vehicleRef.type.startsWith('WB117')) warnings.add(stockVehicle.cargo ? 'warning_un1965_twr' : 'warning_un1965_tn');
else if (stockVehicle.vehicleRef.type.startsWith('445Rb')) warnings.add('warning_un1202_tn');
else if (stockVehicle.vehicleRef.type.startsWith('EDK80')) warnings.add('warning_edk80_pn');
else if (stockVehicle.cargo && /^(tank|vehicles|truck)/.test(stockVehicle.cargo.id)) warnings.add('warning_military_pn');
else if (stockVehicle.cargo && /^(tank|vehicles_01|truck)/.test(stockVehicle.cargo.id)) warnings.add('warning_military_pn');
});
return warnings;