v0.9.0a: fixed sleep vfx sticking around after enemy death in some cases
This commit is contained in:
parent
188f039dc7
commit
d58e189619
|
@ -36,7 +36,7 @@ public class MobSprite extends CharSprite {
|
|||
|
||||
@Override
|
||||
public void update() {
|
||||
sleeping = ch != null && ((Mob)ch).state == ((Mob)ch).SLEEPING;
|
||||
sleeping = ch != null && ch.isAlive() && ((Mob)ch).state == ((Mob)ch).SLEEPING;
|
||||
super.update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user