mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
Fix weapon dupe with server_playerSync
This reverts all the last changes to server_playerSync and creates a new global variable for dayz_onBack. This should be the best way to save the gear correct and still get dayz_onBack if the player leaves the server. This change removes the constant sending of the whole player inventory over the network from force or regluar_save. It should no longer be needed since the server does the counting now.
This commit is contained in:
@@ -38,6 +38,7 @@ call gear_ui_init;
|
||||
|
||||
if (_item == dayz_onBack && carryClick) then {
|
||||
dayz_onBack = "";
|
||||
player setVariable ["dayz_onBack",dayz_onBack,true];
|
||||
carryClick = false;
|
||||
((findDisplay 106) displayCtrl 1209) ctrlSetText "";
|
||||
_removed = true;
|
||||
|
||||
Reference in New Issue
Block a user