diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java | 14 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java index ab73f060d..824dd8c83 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/mining/MineshaftPityDisplayConfig.java @@ -2,7 +2,7 @@ package at.hannibal2.skyhanni.config.features.mining; import at.hannibal2.skyhanni.config.FeatureToggle; import at.hannibal2.skyhanni.config.core.config.Position; -import at.hannibal2.skyhanni.features.mining.MineshaftPityDisplay.MineshaftPityLines; +import at.hannibal2.skyhanni.features.mining.MineshaftPityDisplay.MineshaftPityLine; import com.google.gson.annotations.Expose; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorDraggableList; @@ -23,12 +23,12 @@ public class MineshaftPityDisplayConfig { @Expose @ConfigOption(name = "Stats List", desc = "Drag text to change the appearance of the display.") @ConfigEditorDraggableList - public List<MineshaftPityLines> mineshaftPityLines = new ArrayList<>(Arrays.asList( - MineshaftPityLines.TITLE, - MineshaftPityLines.COUNTER, - MineshaftPityLines.CHANCE, - MineshaftPityLines.NEEDED_TO_PITY, - MineshaftPityLines.TIME_SINCE_MINESHAFT + public List<MineshaftPityLine> mineshaftPityLines = new ArrayList<>(Arrays.asList( + MineshaftPityLine.TITLE, + MineshaftPityLine.COUNTER, + MineshaftPityLine.CHANCE, + MineshaftPityLine.NEEDED_TO_PITY, + MineshaftPityLine.TIME_SINCE_MINESHAFT )); @Expose diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt index 383ecc135..2df977737 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/MineshaftPityDisplay.kt @@ -202,21 +202,21 @@ object MineshaftPityDisplay { ) val map = buildMap { - put(MineshaftPityLines.TITLE, Renderable.string("§9§lMineshaft Pity Counter")) - put(MineshaftPityLines.COUNTER, Renderable.string("§3Pity Counter: §e$counterUntilPity§6/§e$MAX_COUNTER")) + put(MineshaftPityLine.TITLE, Renderable.string("§9§lMineshaft Pity Counter")) + put(MineshaftPityLine.COUNTER, Renderable.string("§3Pity Counter: §e$counterUntilPity§6/§e$MAX_COUNTER")) put( - MineshaftPityLines.CHANCE, + MineshaftPityLine.CHANCE, Renderable.string( "§3Chance: §e1§6/§e${chance.round(1).addSeparators()} §7(§b${((1.0 / chance) * 100).addSeparators()}%§7)", ), ) - put(MineshaftPityLines.NEEDED_TO_PITY, neededToPityRenderable) + put(MineshaftPityLine.NEEDED_TO_PITY, neededToPityRenderable) put( - MineshaftPityLines.TIME_SINCE_MINESHAFT, + MineshaftPityLine.TIME_SINCE_MINESHAFT, Renderable.string("§3Last Mineshaft: §e${lastMineshaftSpawn.passedSince().format()}"), ) put( - MineshaftPityLines.AVERAGE_BLOCKS_MINESHAFT, + MineshaftPityLine.AVERAGE_BLOCKS_MINESHAFT, Renderable.string( "§3Average Blocks/Mineshaft: §e${(mineshaftTotalBlocks / mineshaftTotalCount.toDouble()).addSeparators()}", ), @@ -262,7 +262,7 @@ object MineshaftPityDisplay { private fun isDisplayEnabled() = (MiningAPI.inGlacialTunnels() || MiningAPI.inDwarvenBaseCamp()) && config.enabled - enum class MineshaftPityLines(private val display: String, val shouldDisplay: () -> Boolean = { true }) { + enum class MineshaftPityLine(private val display: String, val shouldDisplay: () -> Boolean = { true }) { TITLE("§3§lMineshaft Pity Counter"), COUNTER("§3Counter: §e561§6/§e2000"), CHANCE("§3Chance: §e1§6/§e1439 §7(§b0.069%§7)"), |