mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +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
@@ -160,14 +160,9 @@ class MasterPlugin extends libPlugin.BaseMasterPlugin {
|
||||
this.logger.warn(`${instanceName} downloaded ${player_name} while another instance has acquired it`);
|
||||
}
|
||||
|
||||
let playerData = this.playerDatastore.get(player_name);
|
||||
if (!playerData) {
|
||||
throw new libErrors.RequestError(`No player data exists for ${player_name}`);
|
||||
}
|
||||
|
||||
this.logger.verbose(`Sending player data for ${player_name} to ${instanceName}`);
|
||||
return {
|
||||
player_data: playerData || null,
|
||||
player_data: this.playerDatastore.get(player_name) || null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user