From 96989cc63c11da87efe39030f1da9a91d3b7812a Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Sun, 19 Oct 2025 15:20:48 +0200 Subject: fix: Skin Preview leaving spaces in skin color id's --- src/main/kotlin/features/debug/SkinPreviews.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/features/debug') diff --git a/src/main/kotlin/features/debug/SkinPreviews.kt b/src/main/kotlin/features/debug/SkinPreviews.kt index 5c710a4..aff5c13 100644 --- a/src/main/kotlin/features/debug/SkinPreviews.kt +++ b/src/main/kotlin/features/debug/SkinPreviews.kt @@ -52,7 +52,7 @@ object SkinPreviews { val shortened = animation.shortenCycle() if (shortened.size <= (animation.size / 2).coerceAtLeast(1) && lastDiscard.passedTime() > 2.seconds) { val tickEstimation = (lastDiscard.passedTime() / animation.size).toTicks() - val skinName = if (skinColor != null) "${skinId}_${skinColor?.uppercase()}" else skinId!! + val skinName = if (skinColor != null) "${skinId}_${skinColor?.replace(" ", "_")?.uppercase()}" else skinId!! val json = buildJsonObject { put("ticks", tickEstimation) -- cgit