diff --git a/SQF/dayz_code/actions/modular_build.sqf b/SQF/dayz_code/actions/modular_build.sqf index 9dbaa7a3f..1d7821e85 100644 --- a/SQF/dayz_code/actions/modular_build.sqf +++ b/SQF/dayz_code/actions/modular_build.sqf @@ -59,7 +59,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActi }; if (_x == "workshop") exitwith { _distance = 3; - _isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]); + _isNear = count (nearestObjects [_pos, DZE_Workshops, _distance]); if (_isNear == 0) then { _abort = true; _reason = localize "STR_EPOCH_WORKBENCH_NEARBY"; diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index 5bfded755..b559ec7c7 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -51,7 +51,7 @@ if ("fire" in _needNear) then { }; }; if ("workshop" in _needNear) then { - _isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]); + _isNear = count (nearestObjects [player, DZE_Workshops, _distance]); if(_isNear == 0) then { _abort = true; _reason = localize "STR_EPOCH_WORKBENCH_NEARBY";