From 4384640c6893249bf1b36eb15dfde1a51f3f9eb3 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Thu, 16 Dec 2021 21:31:06 +0100 Subject: [PATCH] / nil being written to leaderboard cache --- scripts/songselect/songwheel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/songselect/songwheel.lua b/scripts/songselect/songwheel.lua index e0725c7..f3db3bb 100644 --- a/scripts/songselect/songwheel.lua +++ b/scripts/songselect/songwheel.lua @@ -727,7 +727,6 @@ function onIrLeaderboardFetched(res) local song = songwheel.songs[selectedIndex]; local diff = song and song.difficulties[selectedDifficulty] or false; - irLeaderboardsCache[diff.hash] = irLeaderboard; game.Log(diff.hash, game.LOGGER_ERROR) if res.statusCode == IRData.States.Success then @@ -744,6 +743,7 @@ function onIrLeaderboardFetched(res) -- end irLeaderboard = tempIrLB; + irLeaderboardsCache[diff.hash] = irLeaderboard; game.Log(dump(irLeaderboard), game.LOGGER_ERROR) else @@ -1017,7 +1017,7 @@ set_diff = function(newDiff) end selectedDifficulty = newDiff; - irRequestStatus = 1; irLeaderboard = {} + irRequestStatus = 1; irRequestTimeout = 2 end; \ No newline at end of file