forked from mirrors/cobblemon
Fix animation sometimes not playing
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,4 +19,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user