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:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user