aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2025-10-19 15:20:48 +0200
committerLinnea Gräf <nea@nea.moe>2025-10-29 22:11:10 +0100
commit96989cc63c11da87efe39030f1da9a91d3b7812a (patch)
treedb1e2109249db61f69bb665a1899d4fcab49baa4 /src/main
parentd9c4692816f48b1f315820363d2ba087e7526153 (diff)
downloadFirmament-96989cc63c11da87efe39030f1da9a91d3b7812a.tar.gz
Firmament-96989cc63c11da87efe39030f1da9a91d3b7812a.tar.bz2
Firmament-96989cc63c11da87efe39030f1da9a91d3b7812a.zip
fix: Skin Preview leaving spaces in skin color id's
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/features/debug/SkinPreviews.kt2
1 files changed, 1 insertions, 1 deletions
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)