File tree Expand file tree Collapse file tree
src/main/java/de/dafuqs/spectrum/entity/entity Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -469,11 +469,12 @@ private void ascend(int blastMod) {
469469 public void tickMovement () {
470470 super .tickMovement ();
471471
472- Vec3d vec3d = this .getVelocity ();
473- if (!this .isOnGround () && vec3d .y < 0.0 ) {
474- this .setVelocity (vec3d .multiply (1.0 , 0.6 , 1.0 ));
472+ Vec3d velocity = this .getVelocity ();
473+ boolean onGround = this .isOnGround ();
474+ if (!onGround && velocity .y < 0.0 ) {
475+ this .setVelocity (velocity .multiply (1.0 , 0.6 , 1.0 ));
475476 }
476- if (this .fallDistance < 0.2 ) {
477+ if (onGround || this .fallDistance < 0.2 ) {
477478 boolean isMoving = this .getX () - this .prevX != 0 || this .getZ () - this .prevZ != 0 ; // pretty ugly, but also triggers when being ridden
478479 if (getAngerTime () > 0 ) {
479480 this .setPose (isMoving ? EntityPose .EMERGING : EntityPose .ROARING );
You can’t perform that action at this time.
0 commit comments