Spaces:
Sleeping
Sleeping
change for players
Browse files- 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.
|
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 {
|