mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix publicVariableEval kicks from RNG fail
RNG can be a cruel mistress. Fixes: Value Restriction #121 "PVDZE_veh_Publish2" = [[99,[4763.93,7521.36,-0.000228882]],"CSJ_GyroCover",false,"ItemKeyBlack958",<NULL-object>,"iN4r7X7Psetsq"] Thanks @AirwavesMan
This commit is contained in:
@@ -221,7 +221,6 @@ _randomInput = toArray "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234
|
||||
for "_i" from 0 to 12 do {
|
||||
_randomKey set [count _randomKey, (_randomInput call BIS_fnc_selectRandom)];
|
||||
};
|
||||
_randomKey = toString _randomKey;
|
||||
_findIndex = dayz_serverPUIDArray find _playerID;
|
||||
if (_findIndex > -1) then {
|
||||
dayz_serverClientKeys set [_findIndex, [_clientID,_randomKey]];
|
||||
@@ -248,4 +247,4 @@ if (count _inventory > 2) then {
|
||||
[_playerID,_characterID,1,(_playerObj call fa_plr2str),((_worldspace select 1) call fa_coor2str)] call dayz_recordLogin;
|
||||
|
||||
PVDZ_plr_Login1 = null;
|
||||
PVDZ_plr_Login2 = null;
|
||||
PVDZ_plr_Login2 = null;
|
||||
|
||||
Reference in New Issue
Block a user