aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-26 07:59:43 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-26 07:59:43 +0100
commitff879dadddbf7b910dcadcbe7819475d48df8eb6 (patch)
treee22cd5a60f194f796eb3599d855ca0427c0cbedf /src/main/java/at/hannibal2
parent25655d0c66e1ef193fe17a173f42ff82d26111f9 (diff)
downloadskyhanni-ff879dadddbf7b910dcadcbe7819475d48df8eb6.tar.gz
skyhanni-ff879dadddbf7b910dcadcbe7819475d48df8eb6.tar.bz2
skyhanni-ff879dadddbf7b910dcadcbe7819475d48df8eb6.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/slayer/endermen/EndermanConfig.java2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/endermen/EndermanConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/endermen/EndermanConfig.java
index 7b5ce353e..605ce0cf2 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/slayer/endermen/EndermanConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/slayer/endermen/EndermanConfig.java
@@ -8,7 +8,7 @@ import io.github.moulberry.moulconfig.annotations.ConfigOption;
public class EndermanConfig {
@Expose
- @ConfigOption(name = "Yang Glyph (beacon)", desc = "")
+ @ConfigOption(name = "Yang Glyph (Beacon)", desc = "")
@Accordion
public EndermanBeaconConfig beacon = new EndermanBeaconConfig();
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt
index 1bd9290e2..2819f1d41 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt
@@ -30,7 +30,7 @@ import kotlin.time.toDuration
class GardenVisitorTimer {
private val config get() = SkyHanniMod.feature.garden.visitors.timer
private val pattern = "§b§lVisitors: §r§f\\((?<time>.*)\\)".toPattern()
- private var render = ""
+ private var display = ""
private var lastMillis = 0.seconds
private var sixthVisitorArrivalTime = SimpleTimeMark.farPast()
private var visitorJustArrived = false
@@ -73,7 +73,7 @@ class GardenVisitorTimer {
@SubscribeEvent
fun onPreProfileSwitch(event: PreProfileSwitchEvent) {
- render = ""
+ display = ""
lastMillis = 0.seconds
sixthVisitorArrivalTime = SimpleTimeMark.farPast()
visitorJustArrived = false
@@ -93,7 +93,7 @@ class GardenVisitorTimer {
continue
}
if (line == "§b§lVisitors: §r§f(§r§cNot Unlocked!§r§f)") {
- render = ""
+ display = ""
return
}
@@ -173,14 +173,14 @@ class GardenVisitorTimer {
"Next in §$formatColor$formatDuration$extraSpeed"
}
val visitorLabel = if (visitorsAmount == 1) "visitor" else "visitors"
- render = "§b$visitorsAmount $visitorLabel §7($next§7)"
+ display = "§b$visitorsAmount $visitorLabel §7($next§7)"
}
@SubscribeEvent
fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) {
if (!isEnabled()) return
- config.pos.renderString(render, posLabel = "Garden Visitor Timer")
+ config.pos.renderString(display, posLabel = "Garden Visitor Timer")
}
@SubscribeEvent