Skip to content

Commit ffde49c

Browse files
committed
fix: Fix for 4.2.0 data
1 parent 911efb9 commit ffde49c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Jobs/SC/Import/Vehicle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getVehicleModelArray(array $vehicle): array
158158
'height' => $vehicle['Height'] ?? 0,
159159
'length' => $vehicle['Length'] ?? 0,
160160

161-
'crew' => $vehicle['Crew'],
161+
'crew' => $vehicle['Crew'] ?? 1,
162162
'weapon_crew' => $vehicle['WeaponCrew'] ?? 0,
163163
'operations_crew' => $vehicle['OperationsCrew'] ?? 0,
164164
'mass' => $vehicle['Mass'],

app/Jobs/SC/Import/VehicleItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private function createWeapon(array $item): void
336336
'ammunition_uuid' => $item['weapon']['ammunition']['uuid'] ?? null,
337337
]);
338338

339-
if (! empty($item['weapon']['ammunition'])) {
339+
if (! empty($item['weapon']['ammunition']['uuid'])) {
340340
(new Ammunition($item['weapon']))->handle();
341341
}
342342

0 commit comments

Comments
 (0)