some previously played songs bugs
This commit is contained in:
parent
661a040044
commit
c4d4f6813b
2 changed files with 4 additions and 4 deletions
|
|
@ -147,7 +147,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="maps-list">
|
<div class="maps-list">
|
||||||
{#each maps as map (map.taData.guid)}
|
{#each maps as map}
|
||||||
<div class="map-card">
|
<div class="map-card">
|
||||||
<div class="map-cover">
|
<div class="map-cover">
|
||||||
<img
|
<img
|
||||||
|
|
|
||||||
|
|
@ -495,7 +495,7 @@
|
||||||
|
|
||||||
// Add all current players for this song
|
// Add all current players for this song
|
||||||
playingPlayerIds.forEach(playerGuid => {
|
playingPlayerIds.forEach(playerGuid => {
|
||||||
activeSongPlayers.add(`${playerGuid}-${levelId}`);
|
activeSongPlayers.add(`${playerGuid}-${levelId.toLowerCase()}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
const response = await client.playSong(currentSong, playingPlayerIds);
|
const response = await client.playSong(currentSong, playingPlayerIds);
|
||||||
|
|
@ -623,7 +623,7 @@
|
||||||
if (!levelId) return;
|
if (!levelId) return;
|
||||||
|
|
||||||
// Remove player from active song tracking
|
// Remove player from active song tracking
|
||||||
activeSongPlayers.delete(`${rts.player!.guid}-${levelId}`);
|
activeSongPlayers.delete(`${rts.player!.guid}-${levelId.toLowerCase()}`);
|
||||||
|
|
||||||
const map = upcomingQueueMaps.find(x =>
|
const map = upcomingQueueMaps.find(x =>
|
||||||
x.taData.gameplayParameters!.beatmap!.levelId.toUpperCase() === levelId.toUpperCase()
|
x.taData.gameplayParameters!.beatmap!.levelId.toUpperCase() === levelId.toUpperCase()
|
||||||
|
|
@ -639,7 +639,7 @@
|
||||||
|
|
||||||
// Check if any players are still playing this song
|
// Check if any players are still playing this song
|
||||||
const playersStillPlaying = Array.from(activeSongPlayers)
|
const playersStillPlaying = Array.from(activeSongPlayers)
|
||||||
.some(key => key.endsWith(`-${levelId}`));
|
.some(key => key.endsWith(`-${levelId.toLowerCase()}`));
|
||||||
|
|
||||||
const completionType = playersStillPlaying
|
const completionType = playersStillPlaying
|
||||||
? 'Still Awaiting Scores'
|
? 'Still Awaiting Scores'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue