diff options
| author | jani270 <69345714+jani270@users.noreply.github.com> | 2025-10-19 15:20:48 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-10-29 22:11:10 +0100 |
| commit | 96989cc63c11da87efe39030f1da9a91d3b7812a (patch) | |
| tree | db1e2109249db61f69bb665a1899d4fcab49baa4 /src/main | |
| parent | d9c4692816f48b1f315820363d2ba087e7526153 (diff) | |
| download | Firmament-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.kt | 2 |
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) |
