Zeus - Fix bis_fnc_activateaddons error in moduleCurator (#9459)

Close #9445
This commit is contained in:
PabstMirror 2023-10-03 06:08:04 -05:00 committed by GitHub
parent a5a8b5387a
commit 50fba4545f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,8 @@ if (_activated) then {
_class = _cfgPatches select _i;
if (isclass _class) then {_addons set [count _addons,configname _class];};
};
_addons call bis_fnc_activateaddons;
// Modified by ace_zeus - bis_fnc_activateaddons will error if time > 0 so only call if at start
if (time <= 0) then { _addons call bis_fnc_activateaddons; };
removeallcuratoraddons _logic;
_logic addcuratoraddons _addons;
};
@ -249,7 +250,8 @@ if (_activated) then {
} foreach _paramAddons;
};
} foreach (synchronizedobjects _logic);
_addons call bis_fnc_activateaddons;
// Modified by ace_zeus - bis_fnc_activateaddons will error if time > 0 so only call if at start
if (time <= 0) then { _addons call bis_fnc_activateaddons; };
};
//--- Player