Browse Source

Fixed Aerbunnies detaching when the player lands after quick fall.

crossbow-tooltip-test
Jaryt Bustard 1 year ago
parent
commit
0d5be2a325
1 changed files with 12 additions and 12 deletions
  1. +12
    -12
      src/main/java/com/gildedgames/aether/common/entities/animals/EntityAerbunny.java

+ 12
- 12
src/main/java/com/gildedgames/aether/common/entities/animals/EntityAerbunny.java View File

@@ -123,18 +123,18 @@ public class EntityAerbunny extends EntityAetherAnimal
final Entity entity = this.getRidingEntity();

if (!this.world.isRemote) {
if (entity.isSneaking()) {
if (entity.onGround && !this.quickFall) {
NetworkingAether.sendPacketToWatching(new PacketAerbunnySetRiding(null, this), this, false);
this.dismountRidingEntity();
this.setPosition(entity.posX, entity.posY + entity.getEyeHeight() + 0.5D, entity.posZ);
} else {
this.quickFall = true;
}
} else {
this.quickFall = false;
}
if (entity.isSneaking()) {
if (entity.onGround && !this.quickFall) {
NetworkingAether.sendPacketToWatching(new PacketAerbunnySetRiding(null, this), this, false);
this.dismountRidingEntity();
this.setPosition(entity.posX, entity.posY + entity.getEyeHeight() + 0.5D, entity.posZ);
} else {
this.quickFall = true;
}
} else {
this.quickFall = false;
}
}

if (entity.motionY < 0) {


Loading…
Cancel
Save