mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-24 21:54:33 +01:00
Fixed animations not being cancelled correctly when their timer ends. Fixes #325
This commit is contained in:
parent
d5e4b69aec
commit
12748f5c6e
1 changed files with 4 additions and 2 deletions
|
@ -535,13 +535,15 @@ public class Pony extends Living<PlayerEntity> implements Copyable<Pony>, Update
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (animationDuration > 0 && --animationDuration <= 0) {
|
if (animationDuration <= 0 || --animationDuration <= 0) {
|
||||||
|
|
||||||
if (animation.renderBothArms() && acrobatics.distanceClimbed > 0) {
|
if (animation.renderBothArms() && acrobatics.distanceClimbed > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setAnimation(AnimationInstance.NONE);
|
if (!getAnimation().isOf(Animation.NONE)) {
|
||||||
|
setAnimation(AnimationInstance.NONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue