mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-20 16:59:44 +00:00
Fixed manual animations not playing without idle animation selected
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user