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

View File

@@ -53,13 +53,18 @@ public class TenguSprite extends MobSprite {
play( run.clone() );
}
@Override
public void idle() {
isMoving = false;
super.idle();
public void play(Animation anim) {
if (isMoving && anim != run){
synchronized (this){
isMoving = false;
notifyAll();
}
}
super.play(anim);
}
@Override
public void move( int from, int to ) {