diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt index 3de2298a6..8cd45d76d 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt @@ -19,9 +19,9 @@ class TitleManager { private var display = "" private var endTime = SimpleTimeMark.farPast() private var heightModifier = 1.8 - private var fontSizeModifier = 4.0 + private var fontSizeModifier = 4f - fun sendTitle(text: String, duration: Duration, height: Double = 1.8, fontSize: Double = 4.0) { + fun sendTitle(text: String, duration: Duration, height: Double, fontSize: Float) { display = "§f$text" endTime = SimpleTimeMark.now() + duration heightModifier = height @@ -36,7 +36,7 @@ class TitleManager { val duration = args[0].toInt().seconds val height = args[1].toDouble() - val fontSize = args[2].toDouble() + val fontSize = args[2].toFloat() val title = "§6" + args.drop(3).joinToString(" ").replace("&", "§") sendTitle(title, duration, height, fontSize) |