From 0d4afc358c35916049a0b2f6ed97becc1b5096d2 Mon Sep 17 00:00:00 2001 From: abstrct Date: Mon, 29 Dec 2025 23:56:21 -0500 Subject: [PATCH 1/3] Tryin to fix new player issue --- src/js/framework/JsonAjaxer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/framework/JsonAjaxer.js b/src/js/framework/JsonAjaxer.js index 7f7a0786..aa587d5b 100644 --- a/src/js/framework/JsonAjaxer.js +++ b/src/js/framework/JsonAjaxer.js @@ -8,6 +8,7 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, + credentials: 'include', redirect: 'follow' }); return response.json(); @@ -19,6 +20,7 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, + credentials: 'include', body: JSON.stringify(data) }); @@ -31,6 +33,7 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, + credentials: 'include', body: JSON.stringify(data) }); @@ -43,6 +46,7 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, + credentials: 'include', body: JSON.stringify(data) }); From e5fa707d28ed4136d00a3ab590e8c7bc8fb70b7a Mon Sep 17 00:00:00 2001 From: abstrct Date: Tue, 30 Dec 2025 00:00:42 -0500 Subject: [PATCH 2/3] Reverting suggested solution --- src/js/framework/JsonAjaxer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/framework/JsonAjaxer.js b/src/js/framework/JsonAjaxer.js index aa587d5b..7f7a0786 100644 --- a/src/js/framework/JsonAjaxer.js +++ b/src/js/framework/JsonAjaxer.js @@ -8,7 +8,6 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, - credentials: 'include', redirect: 'follow' }); return response.json(); @@ -20,7 +19,6 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, - credentials: 'include', body: JSON.stringify(data) }); @@ -33,7 +31,6 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, - credentials: 'include', body: JSON.stringify(data) }); @@ -46,7 +43,6 @@ export class JsonAjaxer { headers: { 'Content-Type': 'application/json' }, - credentials: 'include', body: JSON.stringify(data) }); From e6fad31a6b20c2214370f631a3bfbec0377eb516 Mon Sep 17 00:00:00 2001 From: abstrct Date: Tue, 30 Dec 2025 00:04:16 -0500 Subject: [PATCH 3/3] Adding a new wait to try and fix a race condition --- src/js/managers/AuthManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/managers/AuthManager.js b/src/js/managers/AuthManager.js index ca475b92..1d6dbbc3 100644 --- a/src/js/managers/AuthManager.js +++ b/src/js/managers/AuthManager.js @@ -180,6 +180,10 @@ export class AuthManager { this.grassManager.registerListener(new StructRefineStatusListener(this.gameState)); await this.signingClientManager.initSigningClient(this.gameState.wallet); + + // There is a race condition regarding login + // Add this to fix... but it's a weak fix + await new Promise(resolve => setTimeout(resolve, 500)); this.playerAddressManager.addPlayerAddressMeta(); const [