From 70d82f1807002903162efa4ce517d5b9bd36e0e1 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Wed, 27 Sep 2023 22:09:30 +0200 Subject: [PATCH 1/2] Fix fuel source interaction appear twice since ACE 3.16.0 --- .../core/fnc/veh/propertiesSet.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf index 26010bc55..fa56505f8 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf @@ -55,10 +55,11 @@ if (_fuelSource isNotEqualTo []) then { ["_defaultFuelCargo", getNumber (configOf _vehicle >> "ace_refuel_fuelCargo"), [0]] ]; if ((!isNil "_hooks") && {_hooks isNotEqualTo (_vehicle getVariable ["ace_refuel_hooks", []])}) then { + [format ["_fuelCargo: %1 ace_refuel_fnc_getFuel: %2", _fuelCargo, [_vehicle] call ace_refuel_fnc_getFuel], __FILE__, [true, true]] call btc_debug_fnc_message; [_vehicle, _fuelCargo, _hooks] call ace_refuel_fnc_makeSource; } else { if (_fuelCargo != [_vehicle] call ace_refuel_fnc_getFuel) then { - [_vehicle, _fuelCargo] call ace_refuel_fnc_makeSource; + [_vehicle, _fuelCargo] call ace_refuel_fnc_setFuel; }; }; _vehicle setVariable ["btc_EDEN_defaultFuelCargo", _defaultFuelCargo, true]; From acbbab76517f51b6f0654324f9cf735876f5685a Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 30 Sep 2023 22:56:45 +0200 Subject: [PATCH 2/2] remove debug --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf | 1 - 1 file changed, 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf index fa56505f8..a27d2d7f1 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/veh/propertiesSet.sqf @@ -55,7 +55,6 @@ if (_fuelSource isNotEqualTo []) then { ["_defaultFuelCargo", getNumber (configOf _vehicle >> "ace_refuel_fuelCargo"), [0]] ]; if ((!isNil "_hooks") && {_hooks isNotEqualTo (_vehicle getVariable ["ace_refuel_hooks", []])}) then { - [format ["_fuelCargo: %1 ace_refuel_fnc_getFuel: %2", _fuelCargo, [_vehicle] call ace_refuel_fnc_getFuel], __FILE__, [true, true]] call btc_debug_fnc_message; [_vehicle, _fuelCargo, _hooks] call ace_refuel_fnc_makeSource; } else { if (_fuelCargo != [_vehicle] call ace_refuel_fnc_getFuel) then {