aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-09-29 18:10:12 +1000
committerGitHub <noreply@github.com>2024-09-29 10:10:12 +0200
commit37a186a932fcd81cfed66642e6a7833937f43b3a (patch)
tree46c88685f9b9ce804366d68bb96cb02a8e8b3ae4 /src/main/java/at/hannibal2/skyhanni/data
parent1f4ce6c4207fe6ef6eaff48a35f61b18a524a429 (diff)
downloadskyhanni-37a186a932fcd81cfed66642e6a7833937f43b3a.tar.gz
skyhanni-37a186a932fcd81cfed66642e6a7833937f43b3a.tar.bz2
skyhanni-37a186a932fcd81cfed66642e6a7833937f43b3a.zip
Backend: Detekt Fixes Part 2 (#2607)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/event/PartyChatEvent.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
index 94bc665b6..edc4f65b0 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerNameFormatter.kt
@@ -214,7 +214,7 @@ object PlayerNameFormatter {
val color = rawColor ?: return null
val level = rawLevel?.getText() ?: error("level is null, color is not null")
val levelData = "$color$level"
- val result = if (config.hideLevelBrackets) levelData else "§8[${levelData}§8]"
+ val result = if (config.hideLevelBrackets) levelData else "§8[$levelData§8]"
return result.applyFormattingFrom(rawLevel)
}
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/event/PartyChatEvent.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/event/PartyChatEvent.kt
index a26af584b..e2b9e04ef 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/event/PartyChatEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/event/PartyChatEvent.kt
@@ -1,7 +1,7 @@
package at.hannibal2.skyhanni.data.hypixel.chat.event
-import at.hannibal2.skyhanni.utils.StringUtils.cleanPlayerName
import at.hannibal2.skyhanni.utils.ComponentSpan
+import at.hannibal2.skyhanni.utils.StringUtils.cleanPlayerName
import net.minecraft.util.IChatComponent
class PartyChatEvent(