diff --git a/SQF/dayz_code/actions/player_sleep.sqf b/SQF/dayz_code/actions/player_sleep.sqf index 3b2cac813..7306b1a66 100644 --- a/SQF/dayz_code/actions/player_sleep.sqf +++ b/SQF/dayz_code/actions/player_sleep.sqf @@ -30,7 +30,11 @@ _blood = 0; _cureAttempt = 0; _lastRest = player getVariable ["lastRest", 0]; _tent = _this select 3; -_isOwner = (_tent getVariable ["characterID","0"]) == dayz_characterID; +if (DZE_permanentPlot) then { + _isOwner = (_tent getVariable ["ownerPUID","0"]) == dayz_playerUID; +} else { + _isOwner = (_tent getVariable ["characterID","0"]) == dayz_characterID; +}; while {r_doLoop} do { _isAsleep = (animationState player) in _sleepArray;