Harden gameplay timing and map loading

This commit is contained in:
2026-10-05 15:15:35 +05:00
parent 8b31891776
commit dcc3779262
36 changed files with 1050 additions and 205 deletions

View File

@@ -10,12 +10,8 @@ export default async function ServerPage({
params: Promise<{ id: string }>;
}) {
const { id } = await params;
let map;
try {
map = await getMap(id);
} catch {
notFound();
}
const map = await getMap(id);
if (!map) notFound();
return (
<>
<Header />
@@ -34,7 +30,7 @@ export default async function ServerPage({
<div>
<div className="detail-map">
<Image
src={map.mapImage || map.image || ""}
src={map.mapImage || map.image || "/images/example-map.webp"}
alt={`${map.name} surface map`}
width={1024}
height={1024}