mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-08-12 18:43:18 +03:00
Make plot and door friends lists backwards compatible
This prevents errors when upgrading 1051 databases that had plot or door management installed. See comments at: https://github.com/EpochModTeam/DayZ-Epoch/commit/fe9b8fdcb4b5cf069e0cc287b97785a3448817c8
This commit is contained in:
@@ -71,17 +71,17 @@ _object_inventory = {
|
||||
} else {
|
||||
_isNormal = true;
|
||||
|
||||
if( DZE_permanentPlot && (typeOf (_object) == "Plastic_Pole_EP1_DZ") ) then {
|
||||
if (DZE_permanentPlot && (typeOf (_object) == "Plastic_Pole_EP1_DZ")) then {
|
||||
_isNormal = false;
|
||||
_inventory = _object getVariable ["plotfriends", []]; //We're replacing the inventory with UIDs for this item
|
||||
};
|
||||
|
||||
if( DZE_doorManagement && (typeOf (_object) in DZE_DoorsLocked) ) then {
|
||||
if (DZE_doorManagement && (typeOf (_object) in DZE_DoorsLocked)) then {
|
||||
_isNormal = false;
|
||||
_inventory = _object getVariable ["doorfriends", []]; //We're replacing the inventory with UIDs for this item
|
||||
};
|
||||
|
||||
if(_isNormal) then {
|
||||
if (_isNormal) then {
|
||||
_inventory = [getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user