Skip to content

Commit

Permalink
Fix timing issue (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Walthzer authored Aug 7, 2022
1 parent c27ae14 commit 263c013
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions addons/repair/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ ADDON = false;

if (isServer) then {

["Tank", "initPost", {
params ["_vehicle"];
if !(ace_repair_addSpareParts && _vehicle isKindOf "Tank") exitWith {};
["CBA_SettingsInitialized", {
["Tank", "initPost", {
params ["_vehicle"];

if !(ace_repair_addSpareParts && _vehicle isKindOf "Tank") exitWith {};
[_vehicle, 1, "ACE_Track"] call ace_repair_fnc_addSpareParts;

[_vehicle, 1, "ACE_Track"] call ace_repair_fnc_addSpareParts;

}] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addClassEventHandler;
}] call CBA_fnc_addEventHandler;
};

ADDON = true;

0 comments on commit 263c013

Please sign in to comment.