Message for myself later when I need to debug this

* undefined access error when setting a profile's socket handler
* Create a unified access API for profiles, rather than instantiating profiles everywhere - this should fix all sync issues, ever
This commit is contained in:
2025-03-27 00:47:48 -04:00
parent c920dbe88a
commit dd7d929918

View File

@@ -15,6 +15,7 @@ export class SignalRSocketHandler {
this.#socket = socket; this.#socket = socket;
this.#profile = player; this.#profile = player;
throw new Error("This will fail due to undefined access attempt. Debug this. Also, please unify profiles.");
player.setSocketHandler(this); player.setSocketHandler(this);
this.log.source += player.getId().toString(); this.log.source += player.getId().toString();