mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
feat: reject 14k keyboard scores
This commit is contained in:
@@ -165,6 +165,10 @@ export const ConverterIRBeatoraja: ConverterFunction<BeatorajaScore, BeatorajaCo
|
||||
chart = await HandleOrphanChartProcess(game, data, context, logger);
|
||||
}
|
||||
|
||||
if (chart.playtype === "14K" && data.deviceType === "KEYBOARD") {
|
||||
throw new InvalidScoreFailure(`Keyboard is not supported for 14K scores.`);
|
||||
}
|
||||
|
||||
const song = await FindSongOnID(game, chart.songID);
|
||||
|
||||
if (!song) {
|
||||
|
||||
Reference in New Issue
Block a user