Skip to content
Permalink
Browse files

If the trilobite's host dies during impregnation, cancel the impregna…

…tion animation.
  • Loading branch information...
Ri5ux committed Mar 14, 2019
1 parent 07e9cfc commit 8d6f85252b711e628171f7e8d68399834d993e4d
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/main/java/org/avp/entities/living/EntityTrilobite.java
@@ -291,6 +291,14 @@ public float updateRotation(float x, float y, float z)
AnimationHandler.INSTANCE.sendAnimationMessage(this, ANIMATION_HUG_WALL);
}
}

if (this.getRidingEntity() != null)
this.getRidingEntity().setDead();

if (this.getRidingEntity() == null && this.getActiveAnimation() == IMPREGNATION_ANIMATION)
{
this.setActiveAnimation(NO_ANIMATION);
}
}

@Override

0 comments on commit 8d6f852

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.