Skip to content

Commit

Permalink
Merge pull request #9 from ArmaAchilles/fix-copy-paste-modules
Browse files Browse the repository at this point in the history
Fix Copy/Paste modules
  • Loading branch information
Kexanone authored Feb 6, 2022
2 parents d3cf1d2 + 6e23f3b commit b2716a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/framework/fnc_onModulePlaced.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ if (typeOf _logic == "module_f") then {
[getPosASL _logic, _entityUnderCursor] call _code;
deleteVehicle _logic;
};

if (_logic isKindOf "module_f") then {
// Fix copy/pasted modules that use BI's module framework
_logic setVariable ["BIS_fnc_initModules_activate", true];
};

0 comments on commit b2716a1

Please sign in to comment.