From 9deda23619394fa2be1439ab7912565467955a0a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 13 Jun 2024 22:22:21 +0200 Subject: formatting --- .../at/hannibal2/skyhanni/test/command/TrackSoundsCommand.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/test/command') 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, ) } } -- cgit