Skip to content

Commit

Permalink
Fix issues introduced in acemod#9133
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Nov 21, 2023
1 parent d8c2929 commit 213c733
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions addons/refuel/functions/fnc_makeSource.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ if (
};

// only add if menu doesn't already exist
if (!(_fuelCargoConfig != 0 && {!isNil {_source getVariable QGVAR(initSource_jipID)}})) then {
private _jipID = [QGVAR(initSource), [_source]] call CBA_fnc_globalEventJIP;
[_jipID, _source] call CBA_fnc_removeGlobalEventJIP;
_source setVariable [QGVAR(initSource_jipID), _jipID];
};
if (_fuelCargoConfig != REFUEL_DISABLED_FUEL || {!isNil {_source getVariable QGVAR(initSource_jipID)}}) exitWith {};

private _jipID = [QGVAR(initSource), [_source]] call CBA_fnc_globalEventJIP;
[_jipID, _source] call CBA_fnc_removeGlobalEventJIP;
_source setVariable [QGVAR(initSource_jipID), _jipID];

[QGVAR(sourceInitialized), [_source]] call CBA_fnc_globalEvent;
2 changes: 1 addition & 1 deletion docs/wiki/framework/refuel-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,5 @@ The jerry can will now have a volume of 200 liters.
| Name | Arguments | Global? | Added in |
| ------------- | ------------- | ------------- |
| ace_refuel_sourceInitialized | Fuel source (OBJECT), items (BOOL or ARRAY) | Yes | 3.16.0 |
| ace_refuel_sourceInitialized | Fuel source (OBJECT) | Yes | 3.16.0 |
| ace_refuel_jerryCanInitalized | Jerry can (OBJECT) | Yes | 3.16.0 |

0 comments on commit 213c733

Please sign in to comment.