diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index 648bb7d..6c89877 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -82,7 +82,9 @@ function App() { } else if (selectedAction.action === 'Attack') { multiplayer.attackMoveCommand(Array.from(selectedUnits), p); } else if (selectedAction.action === 'Build') { - multiplayer.buildCommand(Array.from(selectedUnits), selectedAction.building, p); + // Only send one harvester to build + // TODO send the closest one + multiplayer.buildCommand([selectedUnits.keys().next().value], selectedAction.building, p); } break; case 2: diff --git a/packages/client/src/components/MatchList.tsx b/packages/client/src/components/MatchList.tsx index 2e69dd0..0cc72e0 100644 --- a/packages/client/src/components/MatchList.tsx +++ b/packages/client/src/components/MatchList.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react' import { MatchInfo } from 'server/types' -import { HTTP_API_URL } from './config' +import { HTTP_API_URL } from '../config' type Props = { joinMatch: (matchId: string) => void;