modified removeAnimation lambda a bit

This commit is contained in:
Luis C.M committed 2024-03-24 03:16:24 -05:00
1 parent 16c3395d8c
commit 59cd5b6fe6
1 file changed
+3 -1
+3 -1
View File
@@ -64,7 +64,9 @@ public class CommonProxy implements IGuiHandler {
}
private boolean removeAnimation(Animation animation) {
if (animation.parent == null || animation.parent.animation != animation) return true;
if (animation.currentFrame() == null || animation.parent == null || animation.parent.animation != animation) {
return true;
}
Entity entity = null;
if (animation.parent.parent instanceof DataDisplay) {