mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix broken DZE_SafeZonePosCheck for built items near safezones.
This was forgotten from my original commits
This commit is contained in:
@@ -110,7 +110,7 @@ _text = getText (configFile >> 'CfgMagazines' >> _item >> 'displayName');
|
||||
_buildCheck = call _checkClass;
|
||||
|
||||
if (_buildCheck select 0 && !_isAdmin) then {
|
||||
_canBuild = !((getPosATL player) call DZE_SafeZonePosCheck);
|
||||
_canBuild = !([player,_buildCheck select 1] call DZE_SafeZonePosCheck);
|
||||
};
|
||||
|
||||
if !(_canBuild) exitWith {dayz_actionInProgress = false; format [localize "STR_EPOCH_PLAYER_166",_text,_buildCheck select 1] call dayz_rollingMessages; [false, _isPole];};
|
||||
|
||||
Reference in New Issue
Block a user