Jofthomas HF staff commited on
Commit
ce9098b
1 Parent(s): 3eefd48

change for players

Browse files
Files changed (1) hide show
  1. src/components/Game.tsx +1 -1
src/components/Game.tsx CHANGED
@@ -24,7 +24,7 @@ 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
- let humans = [...game.world.playersInit.values()].filter(player => player.human).length
28
  switch (game.world.gameCycle.cycleState) {
29
  case 'Day':
30
  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
+ let humans = [...game.world.players.values()].filter(player => player.human).length
28
  switch (game.world.gameCycle.cycleState) {
29
  case 'Day':
30
  return {