diff --git a/src/api/handlers/events/IRoomEvents.ts b/src/api/handlers/events/IRoomEvents.ts index 9fae64c..392b639 100644 --- a/src/api/handlers/events/IRoomEvents.ts +++ b/src/api/handlers/events/IRoomEvents.ts @@ -6,7 +6,7 @@ import { LiveScoreData } from "../../../structures/LiveScoreData"; import { ScoreSubmission } from "../../../structures/ScoreSubmussion"; export interface RoomServerClientEvents { - beatmapChanged: (beatmap: Record | null) => void; + beatmapChanged: (beatmap: Record | null) => void; hostChanged: (uid: string) => void; roomModsChanged: (mods: string) => void; speedMultiplierChanged: (speedMultiplier: number) => void; diff --git a/src/api/handlers/events/RoomEvents.ts b/src/api/handlers/events/RoomEvents.ts index 1d5da0c..2c9979d 100644 --- a/src/api/handlers/events/RoomEvents.ts +++ b/src/api/handlers/events/RoomEvents.ts @@ -10,7 +10,7 @@ import { WinCondition } from "../../../enums/WinCondition"; import { Beatmap } from "../../../structures/Beatmap"; import { ScoreSubmission } from "../../../structures/ScoreSubmussion"; -export async function handleBeatmapChange(socket: Socket, room: Room, beatmapData: Record) { +export async function handleBeatmapChange(socket: Socket, room: Room, beatmapData: Record) { if (room.status === RoomStatus.PLAYING) { console.log("[handleBeatmapChange] Attempt to change the beatmap while the match isn't over in room", room.id); return socket.emit("error", "Cannot change the beatmap while somebody is playing.");