actually requesting account instances when game end

This commit is contained in:
Mashy
2019-09-12 15:32:57 +10:00
parent c82fb404d1
commit 58fa6a5734
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ function registerEvents(store) {
}
if (v.phase === 'Finished') {
setGame(null);
ws.sendAccountState();
ws.sendAccountInstances();
}
return store.dispatch(actions.setInstance(v));
+3 -3
View File
@@ -43,8 +43,8 @@ function createSocket(events) {
send(['AccountConstructs', {}]);
}
function sendAccountState() {
send(['AccountState', {}]);
function sendAccountInstances() {
send(['AccountInstances', {}]);
}
function sendAccountSetTeam(ids) {
@@ -323,7 +323,7 @@ function createSocket(events) {
return {
sendAccountConstructs,
sendAccountState,
sendAccountInstances,
sendAccountSetTeam,