summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-03 13:04:34 +0200
committerGitHub <noreply@github.com>2024-05-03 13:04:34 +0200
commit6a8be2c1660815726f8cde11d77e8206ccfccc13 (patch)
tree95f0bdd19784f2f1ce0701063b315e1eca19163d /src/main/java/at/hannibal2/skyhanni/features
parentd4afacc11cfc0fb8ffcb71aae39092f36b401709 (diff)
downloadskyhanni-6a8be2c1660815726f8cde11d77e8206ccfccc13.tar.gz
skyhanni-6a8be2c1660815726f8cde11d77e8206ccfccc13.tar.bz2
skyhanni-6a8be2c1660815726f8cde11d77e8206ccfccc13.zip
Fix upside down mixin and split up spinny from upside down (#1658)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/ContributorManager.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ContributorManager.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ContributorManager.kt
index 8fff1d56a..2ad7d6446 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/ContributorManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ContributorManager.kt
@@ -18,7 +18,8 @@ object ContributorManager {
fun getTabListSuffix(username: String): String? = getContributor(username)?.suffix
- fun canSpin(username: String): Boolean = getContributor(username)?.spinny ?: false
+ fun shouldSpin(username: String): Boolean = getContributor(username)?.spinny ?: false
+ fun shouldBeUpsideDown(username: String): Boolean = getContributor(username)?.upsideDown ?: false
private fun getContributor(username: String) =
contributors[username.lowercase()]?.let { it.takeIf { it.isAllowed() } }