From 707e2ec66d49393b71c209f1ff57e7b67e7c101b Mon Sep 17 00:00:00 2001 From: oiad Date: Sun, 17 Jul 2016 16:56:05 +1200 Subject: [PATCH] More changes to modular_build I wasn't aware modular_build had permanentPlot stuff in it so i've moved the ownerPUID setting to inside the main PFL stuff. Saves having 2 if statements. --- SQF/dayz_code/actions/modular_build.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SQF/dayz_code/actions/modular_build.sqf b/SQF/dayz_code/actions/modular_build.sqf index 040eae858..e000a350f 100644 --- a/SQF/dayz_code/actions/modular_build.sqf +++ b/SQF/dayz_code/actions/modular_build.sqf @@ -537,14 +537,12 @@ if (_canBuild select 0) then { } else { //if not lockable item _tmpbuilt setVariable ["CharacterID",dayz_characterID,true]; - if (DZE_permanentPlot) then { - _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; - }; // fire? if(_tmpbuilt isKindOf "Land_Fire_DZ") then { //if campfire, then spawn, but do not publish to database _tmpbuilt spawn player_fireMonitor; } else { if (DZE_permanentPlot) then { + _tmpbuilt setVariable ["ownerPUID",_playerUID,true]; PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location,_playerUID, _vector], []]; } else { PVDZ_obj_Publish = [dayz_characterID,_tmpbuilt,[_dir,_location, _vector],[]];