fix: removed Re:MASTER by event 0

This commit is contained in:
Menci
2025-11-16 23:00:36 +08:00
parent d21c484ac3
commit 96cfc41f7a
+6
View File
@@ -38,6 +38,12 @@ export const processMusic: WorkerProcessor<IntermediateData> = async ctx => {
} satisfies MaimaiChartMetadataIntermediate } satisfies MaimaiChartMetadataIntermediate
: undefined); : undefined);
// Re:MASTER is removed (bugfix?).
if (MusicData.subEventName.id === 0 && charts[4] != null) {
logger.warn(`Music ${fileName} (${name}) has Re:MASTER removed (bugfix?)`);
charts[4] = undefined;
}
// Remove charts of nonexistent difficulties. // Remove charts of nonexistent difficulties.
while (charts.length > 0 && charts[charts.length - 1] === undefined) charts.pop(); while (charts.length > 0 && charts[charts.length - 1] === undefined) charts.pop();