From 6a414c747b1f6af7c20cf1ff9eda6b06e60d6a43 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 14 Jan 2024 16:18:29 -0500 Subject: [PATCH] v2.3.0: jump and pushing effects now correctly trigger sprite sorting --- .../shatteredpixel/shatteredpixeldungeon/effects/Pushing.java | 4 +++- .../shatteredpixeldungeon/sprites/CharSprite.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java index 46e6bd576..0be2b29d9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Pushing.java @@ -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(); } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java index cb4c25761..6e0ab3957 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/CharSprite.java @@ -718,6 +718,7 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip if (jumpCallback != null) { jumpCallback.call(); } + GameScene.sortMobSprites(); } else if (tweener == motion) {