v1.3.2: adjusted Tengu's sprite logic to prevent hangs in rare cases

This commit is contained in:
Evan Debenham
2022-07-12 17:28:49 -04:00
parent 613feb2741
commit 783dab6fc1
@@ -53,13 +53,18 @@ public class TenguSprite extends MobSprite {
play( run.clone() ); play( run.clone() );
} }
@Override @Override
public void idle() { public void play(Animation anim) {
isMoving = false; if (isMoving && anim != run){
super.idle(); synchronized (this){
isMoving = false;
notifyAll();
}
}
super.play(anim);
} }
@Override @Override
public void move( int from, int to ) { public void move( int from, int to ) {