Spaces:
Sleeping
Sleeping
log
Browse files- src/components/Game.tsx +2 -2
src/components/Game.tsx
CHANGED
@@ -24,8 +24,8 @@ import { LOBBY_SIZE } from '../../convex/constants';
|
|
24 |
export const SHOW_DEBUG_UI = !!import.meta.env.VITE_SHOW_DEBUG_UI;
|
25 |
|
26 |
export function GameStateLabel(game: GameObj, me: PlayerDescription | undefined) {
|
27 |
-
const humans = [...game.world.
|
28 |
-
|
29 |
switch (game.world.gameCycle.cycleState) {
|
30 |
case 'Day':
|
31 |
return {
|
|
|
24 |
export const SHOW_DEBUG_UI = !!import.meta.env.VITE_SHOW_DEBUG_UI;
|
25 |
|
26 |
export function GameStateLabel(game: GameObj, me: PlayerDescription | undefined) {
|
27 |
+
const humans = [...game.world.players.values()].filter(player => player.human).length
|
28 |
+
console.log('Human player seen by lobby',game.world.players.values())
|
29 |
switch (game.world.gameCycle.cycleState) {
|
30 |
case 'Day':
|
31 |
return {
|