You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} elseif(Mod::get()->getSettingValue<std::string>("rate-mode-selection") == "Current Difficulty") { // Only rate the current difficulty if the user chose it.
95
-
starsRated = p0->getAverageDifficulty();
95
+
starsRated = level->getAverageDifficulty();
96
96
97
97
switch (starsRated) {
98
98
case0:
@@ -202,15 +202,15 @@ class $modify(AutoLevelRate, LevelInfoLayer) {
202
202
203
203
// Only rate the requested difficulty if the user chose it.
204
204
if (Mod::get()->getSettingValue<std::string>("rate-mode-selection") == "Requested Difficulty"){
205
-
if (p0->m_starsRequested == 0) { // If they never requested any stars (N/A)
205
+
if (level->m_starsRequested == 0) { // If they never requested any stars (N/A)
} elseif(Mod::get()->getSettingValue<std::string>("rate-mode-selection") == "Current Difficulty") { // Only rate the current difficulty if the user chose it.
213
-
newStarsRated = p0->getAverageDifficulty();
213
+
newStarsRated = level->getAverageDifficulty();
214
214
215
215
switch (newStarsRated) {
216
216
case0:
@@ -266,5 +266,6 @@ class $modify(AutoLevelRate, LevelInfoLayer) {
266
266
log::info("Successfully rated the level {}*", newStarsRated);
0 commit comments