From ff09ed8c9598928b4960c4902084807af97face3 Mon Sep 17 00:00:00 2001 From: Yang Seong Mo Date: Fri, 6 Dec 2024 18:38:55 +0900 Subject: [PATCH] Remove text space constraint --- dist/src/main/kotlin/kr/toxicity/hud/layout/TextLayout.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/src/main/kotlin/kr/toxicity/hud/layout/TextLayout.kt b/dist/src/main/kotlin/kr/toxicity/hud/layout/TextLayout.kt index 084ae6e5..ec4f090d 100644 --- a/dist/src/main/kotlin/kr/toxicity/hud/layout/TextLayout.kt +++ b/dist/src/main/kotlin/kr/toxicity/hud/layout/TextLayout.kt @@ -131,7 +131,7 @@ interface TextLayout : HudLayout { override val pattern: String = yamlObject["pattern"]?.asString().ifNull("pattern value not set: $s") override val scale: Double = yamlObject.getAsDouble("scale", 1.0) - override val space: Int = yamlObject.getAsInt("space", 0).coerceAtLeast(0) + override val space: Int = yamlObject.getAsInt("space", 0) override val align: LayoutAlign = yamlObject["align"]?.asString().toLayoutAlign() override val lineAlign: LayoutAlign = yamlObject["line-align"]?.asString().toLayoutAlign() override val color: TextColor = yamlObject["color"]?.asString()?.toTextColor() ?: NamedTextColor.WHITE