aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-13 22:22:21 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-06-13 22:22:21 +0200
commit9deda23619394fa2be1439ab7912565467955a0a (patch)
tree6da27eaea397ccc813e9a042bab7bb1713676e71 /src/main/java/at/hannibal2/skyhanni/test
parent529639fdd0683066eadffe93473a300a2177c008 (diff)
downloadskyhanni-9deda23619394fa2be1439ab7912565467955a0a.tar.gz
skyhanni-9deda23619394fa2be1439ab7912565467955a0a.tar.bz2
skyhanni-9deda23619394fa2be1439ab7912565467955a0a.zip
formatting
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
index fdbb7c285..50b0c417d 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt
@@ -48,7 +48,7 @@ object TrackSoundsCommand {
if (isRecording) {
ChatUtils.userError(
"Still tracking sounds, wait for the other tracking to complete before starting a new one, " +
- "or type §e/shtracksounds end §cto end it prematurely"
+ "or type §e/shtracksounds end §cto end it prematurely",
)
return
}
@@ -70,10 +70,9 @@ object TrackSoundsCommand {
val soundsToDisplay = sounds.takeWhile { startTime.passedSince() - it.first < 3.seconds }
- display = soundsToDisplay
- .take(10).reversed().map {
- Renderable.string("§3" + it.second.soundName + " §8p:" + it.second.pitch + " §7v:" + it.second.volume)
- }
+ display = soundsToDisplay.take(10).reversed().map {
+ Renderable.string("§3" + it.second.soundName + " §8p:" + it.second.pitch + " §7v:" + it.second.volume)
+ }
worldSounds = soundsToDisplay.map { it.second }.groupBy { it.location }
// The function must run after cutOffTime has passed to ensure thread safety
@@ -125,7 +124,7 @@ object TrackSoundsCommand {
event.drawDynamicText(
key.up(-0.2),
"§7P: §e${sound.pitch.round(2)} §7V: $volumeColor${sound.volume.round(2)}",
- scaleMultiplier = 0.8
+ scaleMultiplier = 0.8,
)
}
}