Spaces:
Sleeping
Sleeping
layout + check
Browse files- patches/src/App.tsx +0 -5
- patches/src/components/Game.tsx +1 -1
patches/src/App.tsx
CHANGED
|
@@ -73,14 +73,9 @@ export default function Home() {
|
|
| 73 |
<OAuthLogin />
|
| 74 |
</div>
|
| 75 |
<Game />
|
| 76 |
-
|
| 77 |
<footer className="justify-end bottom-0 left-0 w-full flex items-center mt-4 gap-3 p-6 flex-wrap pointer-events-none">
|
| 78 |
<div className="flex gap-4 flex-grow pointer-events-none">
|
| 79 |
-
<FreezeButton />
|
| 80 |
<MusicButton />
|
| 81 |
-
<Button href="https://github.com/a16z-infra/ai-town" imgUrl={starImg}>
|
| 82 |
-
Star
|
| 83 |
-
</Button>
|
| 84 |
<InteractButton />
|
| 85 |
<Button imgUrl={helpImg} onClick={() => setHelpModalOpen(true)}>
|
| 86 |
Help
|
|
|
|
| 73 |
<OAuthLogin />
|
| 74 |
</div>
|
| 75 |
<Game />
|
|
|
|
| 76 |
<footer className="justify-end bottom-0 left-0 w-full flex items-center mt-4 gap-3 p-6 flex-wrap pointer-events-none">
|
| 77 |
<div className="flex gap-4 flex-grow pointer-events-none">
|
|
|
|
| 78 |
<MusicButton />
|
|
|
|
|
|
|
|
|
|
| 79 |
<InteractButton />
|
| 80 |
<Button imgUrl={helpImg} onClick={() => setHelpModalOpen(true)}>
|
| 81 |
Help
|
patches/src/components/Game.tsx
CHANGED
|
@@ -92,7 +92,7 @@ export default function Game() {
|
|
| 92 |
const scrollViewRef = useRef<HTMLDivElement>(null);
|
| 93 |
|
| 94 |
const humanTokenIdentifier = useQuery(api.world.userStatus, worldId ? { worldId } : 'skip');
|
| 95 |
-
if (!worldId || !engineId || !game
|
| 96 |
return null;
|
| 97 |
}
|
| 98 |
const playerId = [...game.world.players.values()].find(
|
|
|
|
| 92 |
const scrollViewRef = useRef<HTMLDivElement>(null);
|
| 93 |
|
| 94 |
const humanTokenIdentifier = useQuery(api.world.userStatus, worldId ? { worldId } : 'skip');
|
| 95 |
+
if (!worldId || !engineId || !game ) {
|
| 96 |
return null;
|
| 97 |
}
|
| 98 |
const playerId = [...game.world.players.values()].find(
|