mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 23:30:41 +09:00
Hotfix new player sync logic
Fix has_data not being checked by sync_player, dialog being stuck open if no data is received by the master and master server refusing to server empty data.
This commit is contained in:
1 parent
8c62213a52
commit
1035389c9e
4 files changed
+8
-8
No files matched your search
@@ -194,7 +194,10 @@ function inventory_sync.sync_player(acquire_response)
|
||||
return
|
||||
end
|
||||
|
||||
if not player_record.sync or acquire_response.generation > player_record.generation then
|
||||
if
|
||||
acquire_response.has_data
|
||||
and (not player_record.sync or acquire_response.generation > player_record.generation)
|
||||
then
|
||||
inventory_sync.initiate_inventory_download(player, player_record, acquire_response.generation)
|
||||
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user