Skip to content

Commit

Permalink
Fix Grass Cutter badge being borked
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed May 2, 2024
1 parent 75be943 commit 3b695d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class GrassCutterBadge(val pudding: Pudding) : Badge.LorittaBadge(
) {
override suspend fun checkIfUserDeservesBadge(user: ProfileUserInfoData, profile: Profile, mutualGuilds: Set<Long>): Boolean {
return pudding.transaction {
UserAchievements.select { UserAchievements.user eq user.id.toLong() and (UserAchievements.type eq AchievementType.STONKS) }
UserAchievements.select { UserAchievements.user eq user.id.toLong() and (UserAchievements.type eq AchievementType.GRASS_CUTTER) }
.count() == 1L
}
}
Expand Down

0 comments on commit 3b695d0

Please sign in to comment.