Dragging - Fix being able to load cargo if the system is disabled (#9639)

This commit is contained in:
Filip Maciejewski 2023-11-10 20:56:22 +01:00 committed by GitHub
parent c850a6a25f
commit 9f9507931f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,7 @@ if (
(_distance <= MAX_LOAD_DISTANCE_MAN) && {[_cursorObject, 0, true] call EFUNC(common,nearestVehiclesFreeSeat) isNotEqualTo []}
} else {
["ace_cargo"] call EFUNC(common,isModLoaded) &&
{EGVAR(cargo,enable)} &&
{[_target, _cursorObject] call EFUNC(cargo,canLoadItemIn)}
}
}

View File

@ -116,6 +116,7 @@ if (_tryLoad && {!isNull _cursorObject} && {[_unit, _cursorObject, ["isNotCarryi
} else {
if (
["ace_cargo"] call EFUNC(common,isModLoaded) &&
{EGVAR(cargo,enable)} &&
{[_target, _cursorObject] call EFUNC(cargo,canLoadItemIn)}
) then {
[_unit, _target, _cursorObject] call EFUNC(cargo,startLoadIn);