mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Avoid gear update for empty random vehicles
There is no need to update the inventory if no loot was added.
My mistake from d98025c
This commit is contained in:
@@ -82,6 +82,9 @@ if (count AllowedVehiclesList == 0) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
[_veh,[_dir,_objPosition],_vehicle,true,"0"] call server_publishVeh;
|
[_veh,[_dir,_objPosition],_vehicle,true,"0"] call server_publishVeh;
|
||||||
_vehiclesToUpdate set [count _vehiclesToUpdate,_veh];
|
|
||||||
|
if (_num > 0) then {
|
||||||
|
_vehiclesToUpdate set [count _vehiclesToUpdate,_veh];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user