mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Fix ServerMagArray count error
(select 2) selects 3rd element
From 252843d @icomrade
This commit is contained in:
@@ -232,8 +232,8 @@ _clientID publicVariableClient "PVCDZ_plr_plantSpawner";
|
|||||||
_playerObj setVariable ["lastTime",time];
|
_playerObj setVariable ["lastTime",time];
|
||||||
|
|
||||||
//set server-side inventory variable to monitor player gear
|
//set server-side inventory variable to monitor player gear
|
||||||
if ((count _inventory) > 1) then {
|
if (count _inventory > 2) then {
|
||||||
_playerObj setVariable["ServerMagArray",[_inventory select 1, _inventory select 2], false];
|
_playerObj setVariable["ServerMagArray",[_inventory select 1,_inventory select 2], false];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user