Skip to content

Commit f8e4190

Browse files
committed
Fix #567: Kindling pose not resetting from gliding state when back on the ground
1 parent 2ff73a2 commit f8e4190

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main/java/de/dafuqs/spectrum/entity/entity/KindlingEntity.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)