diff options
Diffstat (limited to 'src/main/kotlin/features/debug/SkinPreviews.kt')
| -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) |
