Jofthomas HF staff commited on
Commit
e6035b5
1 Parent(s): 79d1b69
Files changed (1) hide show
  1. 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.playersInit.values()].filter(player => player.human).length
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 {