v2.3.0: jump and pushing effects now correctly trigger sprite sorting

This commit is contained in:
Evan Debenham
2024-01-14 16:18:29 -05:00
parent a0b4c9c11a
commit 6a414c747b
2 changed files with 4 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.effects;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
import com.watabou.noosa.Camera;
import com.watabou.noosa.Game;
@@ -122,7 +123,8 @@ public class Pushing extends Actor {
killAndErase();
Actor.remove(Pushing.this);
if (callback != null) callback.call();
GameScene.sortMobSprites();
next();
}
}

View File

@@ -718,6 +718,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
if (jumpCallback != null) {
jumpCallback.call();
}
GameScene.sortMobSprites();
} else if (tweener == motion) {