Spaces:
Sleeping
Sleeping
pray
Browse files- src/components/Game.tsx +4 -1
src/components/Game.tsx
CHANGED
@@ -95,9 +95,12 @@ export default function Game() {
|
|
95 |
if (!worldId || !engineId || !game ) {
|
96 |
return null;
|
97 |
}
|
|
|
98 |
const playerId = [...game.world.players.values()].find(
|
99 |
-
(p) => p.
|
100 |
)?.id;
|
|
|
|
|
101 |
const meDescription = playerId ? game?.playerDescriptions.get(playerId) : undefined;
|
102 |
return (
|
103 |
<>
|
|
|
95 |
if (!worldId || !engineId || !game ) {
|
96 |
return null;
|
97 |
}
|
98 |
+
console.log("humanTokenIdentifier",humanTokenIdentifier)
|
99 |
const playerId = [...game.world.players.values()].find(
|
100 |
+
(p) => p.id === humanTokenIdentifier,
|
101 |
)?.id;
|
102 |
+
console.log("playerId",playerId)
|
103 |
+
|
104 |
const meDescription = playerId ? game?.playerDescriptions.get(playerId) : undefined;
|
105 |
return (
|
106 |
<>
|