Fixed manual animations not playing without idle animation selected

This commit is contained in:
Goodbird committed 2024-05-06 18:20:23 +03:00
1 parent fe823736b0
commit 2621c26d6d
2 files changed
+3 -3

No files matched your search

@@ -39,7 +39,7 @@ public class EntityCustomModel extends EntityCreature implements IAnimatable, IA
private <E extends IAnimatable> PlayState predicateMovement(AnimationEvent<E> event) {
if (manualAnim != null) {
if (event.getController().getAnimationState() == AnimationState.Stopped) {
if (event.getController().currentAnimationBuilder == manualAnim && event.getController().getAnimationState() == AnimationState.Stopped) {
manualAnim = null;
} else {
if (event.getController().currentAnimationBuilder != manualAnim) {
@@ -50,7 +50,7 @@ public class EntityCustomModel extends EntityCreature implements IAnimatable, IA
}
}
if (dialogAnim != null) {
if (event.getController().getAnimationState() == AnimationState.Stopped) {
if (event.getController().currentAnimationBuilder == dialogAnim && event.getController().getAnimationState() == AnimationState.Stopped) {
dialogAnim = null;
} else {
if (event.getController().currentAnimationBuilder != dialogAnim) {
@@ -33,7 +33,7 @@ public class TileEntityCustomModel extends TileEntity implements IAnimatable {
private <E extends TileEntity & IAnimatable> PlayState predicate(AnimationEvent<E> event) {
if (manualAnim != null) {
if (event.getController().getAnimationState() == AnimationState.Stopped) {
if (event.getController().currentAnimationBuilder == manualAnim && event.getController().getAnimationState() == AnimationState.Stopped) {
manualAnim = null;
} else {
if (event.getController().currentAnimationBuilder != manualAnim) {