mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 16:28:17 +03:00
fix: make bms rival compare work
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ function FolderCompare({
|
||||
|
||||
const songMap = CreateSongMap(baseData.songs);
|
||||
|
||||
let ds: ComparePBsDataset = [...baseData.charts, ...compareData.charts].map((chart) => ({
|
||||
let ds: ComparePBsDataset = baseData.charts.map((chart) => ({
|
||||
chart,
|
||||
base: basePBLookup.get(chart.chartID) ?? null,
|
||||
compare: comparePBLookup.get(chart.chartID) ?? null,
|
||||
|
||||
@@ -7,9 +7,9 @@ import {
|
||||
GamePTConfig,
|
||||
GetGamePTConfig,
|
||||
IDStrings,
|
||||
Playtype,
|
||||
} from "tachi-common";
|
||||
import { ComparePBsDataset, FolderDataset, PBDataset, ScoreDataset } from "types/tables";
|
||||
import { Playtype } from "tachi-common";
|
||||
|
||||
function GetBMSTableVal(chart: ChartDocument<"bms:7K" | "bms:14K">, key: string) {
|
||||
for (const table of chart.data.tableFolders) {
|
||||
@@ -100,7 +100,7 @@ export function CreatePBCompareSearchParams<I extends IDStrings = IDStrings>(
|
||||
};
|
||||
|
||||
if (game === "bms") {
|
||||
HandleBMSNonsense(searchFunctions, playtype, (k) => k);
|
||||
HandleBMSNonsense(searchFunctions, playtype, (k) => k.chart);
|
||||
}
|
||||
|
||||
return searchFunctions;
|
||||
|
||||
Reference in New Issue
Block a user