Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
nikameru committed Oct 5, 2024
2 parents 7358310 + b053419 commit f74a790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/handlers/events/IRoomEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LiveScoreData } from "../../../structures/LiveScoreData";
import { ScoreSubmission } from "../../../structures/ScoreSubmussion";

export interface RoomServerClientEvents {
beatmapChanged: (beatmap: Record<string, any> | null) => void;
beatmapChanged: (beatmap: Record<string, string> | null) => void;
hostChanged: (uid: string) => void;
roomModsChanged: (mods: string) => void;
speedMultiplierChanged: (speedMultiplier: number) => void;
Expand Down
2 changes: 1 addition & 1 deletion src/api/handlers/events/RoomEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>) {
export async function handleBeatmapChange(socket: Socket, room: Room, beatmapData: Record<string, string>) {
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.");
Expand Down

0 comments on commit f74a790

Please sign in to comment.