From e32a2da8a4dcdc241d74295369bc397f78796fa7 Mon Sep 17 00:00:00 2001 From: Landon Wills Date: Sat, 19 Apr 2025 21:05:24 -0400 Subject: [PATCH] Fix animation sometimes not playing --- .../cobblemon/mod/common/client/entity/PokemonClientDelegate.kt | 2 +- .../cobblemon/bedrock/generic/animations/hatch.animation.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt index d3eeaf18fc..a78a003797 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/client/entity/PokemonClientDelegate.kt @@ -404,7 +404,7 @@ class PokemonClientDelegate : PosableState(), PokemonSideDelegate { } fun hatch() { - val animation = model?.getAnimation(this, "q.bedrock_stateful('hatch', 'hatch', 'endures_primary_animations');", runtime) ?: return + val animation = model?.getAnimation(this, "q.bedrock_primary('hatch', 'hatch');", runtime) ?: return if (animation is PrimaryAnimation) { addPrimaryAnimation(animation) } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/hatch.animation.json b/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/hatch.animation.json index ea7b62d80b..eb2de9469b 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/hatch.animation.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/generic/animations/hatch.animation.json @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +}