diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 11:19:50 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-10 11:19:50 +0200 |
commit | edafbfcf60f77c3e5c32841ba5a4763294fcb8e9 (patch) | |
tree | 8766acd6abf9c0ded80cd6637bdc562722d9efce /src/main/java/at | |
parent | 99b4db7a09e9b537195c6d59225b817e98713ebf (diff) | |
download | skyhanni-edafbfcf60f77c3e5c32841ba5a4763294fcb8e9.tar.gz skyhanni-edafbfcf60f77c3e5c32841ba5a4763294fcb8e9.tar.bz2 skyhanni-edafbfcf60f77c3e5c32841ba5a4763294fcb8e9.zip |
code cleanup
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt index 0c669e802..13ca61902 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobContestTimeNeeded.kt @@ -97,7 +97,6 @@ class JacobContestTimeNeeded { map: MutableMap<CropType, Renderable> ) { val lowBPSWarning = listOf<String>() - var lowBPSWarning1 = lowBPSWarning val rawSpeed = speed.toDouble() val speedForFormular = crop.getLatestBlocksPerSecond()?.let { if (it < 15) { @@ -117,16 +116,16 @@ class JacobContestTimeNeeded { if (blocksPerSecond == null) { marking += "§0§l !" //hoping this never shows blocksPerSecond = 19.9 - lowBPSWarning1 = listOf("§cYour Blocks/second is too low,", "§cshowing 19.9 Blocks/second instead!") + lowBPSWarning = listOf("§cYour Blocks/second is too low,", "§cshowing 19.9 Blocks/second instead!") } else { if (blocksPerSecond < 15.0) { marking += "§4§l !" blocksPerSecond = 19.9 - lowBPSWarning1 = + lowBPSWarning = listOf("§cYour Blocks/second is too low,", "§cshowing 19.9 Blocks/second instead!") } else { marking += " " - lowBPSWarning1 = listOf("§aYour Blocks/second is good :)") + lowBPSWarning = listOf("§aYour Blocks/second is good :)") } } val line = if (timeInMinutes < 20) { @@ -153,7 +152,7 @@ class JacobContestTimeNeeded { add("§7Latest FF: §e${(latestFF).addSeparators()}") val bps = crop.getLatestBlocksPerSecond()?.round(1) ?: 0 add("§7Blocks/Second: §e${bps.addSeparators()}") - addAll(lowBPSWarning1) + addAll(lowBPSWarning) }) } |