Skip to content

Commit

Permalink
hotfix wrong math for fuelcargo check
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale committed Jul 3, 2024
1 parent c99e948 commit 1884bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Missionframework/KPLIB_objectInits.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ KPLIB_objectInits = [
[_this] spawn {
params ["_fuelTruck"];
waitUntil {sleep 0.1; time > 0};
if (getNumber (configfile >> "CfgVehicles" >> (typeOf _fuelTruck) >> "ace_refuel_fuelCargo") > 0) then {
if (getNumber (configfile >> "CfgVehicles" >> (typeOf _fuelTruck) >> "ace_refuel_fuelCargo") <= 0) then {
[_fuelTruck, 3000] remoteExecCall ["ace_refuel_fnc_makeSource", 0, _fuelTruck];
};
};
Expand Down

0 comments on commit 1884bf9

Please sign in to comment.